windows 設(shè)置pip 鏡像 Pip Warning:–trusted-host 問題解決方案
****windows 下配置文件名后綴是ini,不是conf,與linux不同,是pip.ini。
目錄為C:\Users\你的帳戶名\pip
pip.ini中加上trusted-host=mirrors.aliyun.com
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
參考資料:
**Mac下使用國內(nèi)PyPi鏡像源安裝Python庫 https://linzhen.net/change-pypi-mirrors-under-mac/
**
linux 設(shè)置pip 鏡像 Pip Warning:–trusted-host 問題解決方案
http://www.cnblogs.com/yudar/p/4657511.html