pip更换为国内源

方法1
[root@aliyun home] vim ~/.pip/pip.conf

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

or
方法2
pip install nose -i http://mirrors.aliyun.com/pypi/simple

你可能感兴趣的:(pip更换为国内源)