在命令后面加 :
-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
如下:
pip install django -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
或者:
pip3 install django -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com