0%

pip install change source

pip 指定源

~/.pip/pip.conf

1
2
3
4
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com

or

临时指定

1
pip install pyyaml --user -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com