windows環境用pip安裝第三方庫Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retrie s exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN _PROTOCOL] unknown protocol (_ssl.c:852)'),)) - skipping
應該是 https://pypi.org/simple/pip/ 這個地址,被公司攔截了
通過百度解決辦法:
pip install package_name -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
可替換用的鏡像源
1)http://mirrors.aliyun.com/pypi/simple/ 阿里雲
2)https://pypi.mirrors.ustc.edu.cn/simple/ 中國科技大學
3)http://pypi.douban.com/simple/ 豆瓣
4)https://pypi.tuna.tsinghua.edu.cn/simple/ 清華大學
5)http://pypi.mirrors.ustc.edu.cn/simple/ 中國科學技術大學