安装pqi

1
pip(3) install pqi

查看可用源

1
2
3
4
5
6
7
8
[root@localhost ~]# pqi ls

pypi https://pypi.python.org/simple/
tuna https://pypi.tuna.tsinghua.edu.cn/simple
douban http://pypi.douban.com/simple/
aliyun https://mirrors.aliyun.com/pypi/simple/
ustc https://mirrors.ustc.edu.cn/pypi/web/simple

添加源

1
2
3
[root@localhost ~]# pqi use tuna 

Source is changed to tuna(https://pypi.tuna.tsinghua.edu.cn/simple).

查看当前源

1
2
3
4
[root@localhost ~]# pqi show

Current source is tuna(https://pypi.tuna.tsinghua.edu.cn/simple).

所有命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@localhost ~]# pqi -h
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.