pip install -i <package name> http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple
或者在$HOME/.pip
目录下,新建文件pip.conf
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
pip install -i <package name> http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple
或者在$HOME/.pip
目录下,新建文件pip.conf
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com