Skip to main content
                                         _ __      _,.---._      .=-.-.
                                      .-`.' ,`.  ,-.' - ,  `.   /==/_ /
                                     /==/, -   \/==/ ,    -  \ |==|, |  
                                    |==| _ .=. |==| - .=.  ,  ||==|  |  
                                    |==| , '=',|==|  : ;=:  - ||==|- |  
                                    |==|-  '..'|==|,  '='  ,  ||==| ,|  
                                    |==|,  |    \==\ _   -    ;|==|- |  
                                    /==/ - |     '.='.  ,  ; -\/==/. /  
                                    `--`---'       `--`--'' `--`--`-`   

                                                    ---- by Hangfeng Yang

pqi: a terminal tools for Python🌐

由于国内通过pip下载python包的速度真的很慢,很容易因为超时而失败,而pqi可以把PyPi源迅速切换为国内源tuna, douban, aliyun, ustc从而大大加快python包的安装速度,提速效果见下图所示。

怎么使用(兼容py2/py3/linux/windows/MacOS)

1.安装

方法一(推荐)

>>> pip install pqi

方法二

>>> git clone https://github.com/yhangf/PyQuickInstall.git
>>> python3 setup.py install

2. 命令行输入 pqi 回车

>>> pqi
Usage:
  pqi ls
  pqi use <name>
  pqi show
  pqi add <name> <url>
  pqi remove <name>
  pqi (-h | --help)
  pqi (-v | --version)
Options:
  -h --help        Show this screen.
  -v --version     Show version.
  • 列举所有支持的PyPi源
>>> pqi ls
  • 改变PyPi源
>>> pqi use <name>

例子,比如运行pqi use tuna即把当前PyPi源改为清华的PyPi源

  • 显示当前PyPi源
>>> pqi show
  • 添加新的pip源(如添加USTC源)
>>> pqi add ustc https://mirrors.ustc.edu.cn/pypi/web/simple
  • 移除pip源(如官方PyPi源)
>>> pqi remove pypi

3. 升级到最新版pqi

>>> pip install --upgrade pqi

LICENSE

MIT

Metadata

Release files for pqi 4.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pqi 4.0.2
File Size Uploaded
pqi-4.0.2.tar.gz 4.8 kB Details

Release files / pqi-4.0.2.tar.gz

Download URL pqi-4.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dbe0b68a892a94ac91a1674fc87e1b3341794ce3973b343d0494761eee9648a9
BLAKE2b-256 checksum
How to use checksums
a269979ce9c79e8554bab5222aed9cf52ceebf2ea5671e0bf4770f51a987bfc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

This release

4.0.2 This release

1 release file

3.0.0

2 release files

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page