解決:pip is configured with locations that require TLS/SSL

bug:

Could not fetch URL https://pypi.python.org/simple/: ...
or
pip is configured with locations that require TLS/SSL

打開終端,輸入

mkdir ~/.pip    

cd ~/.pip

創建pip.conf文件:

touch pip.conf

複製粘貼以下配置到pip.conf文件中:

[global]

index-url = http://pypi.douban.com/simple/ 

[install]

trusted-host=pypi.douban.com

disable-pip-version-check = true  

timeout = 6000 

然後就可以了~~

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章