無法忍受國外pip 倉庫的龜速地址,安利一波國內高速鏡像地址... 首推阿里雲 repository
馬爸爸 I ❤ u
如果是windows環境
請在 c:\\users\\administrator下創建名為pip的文件夾
隨后在pip文件夾內創建pip.ini,配置內容同config里的配置~
1 $ vim ~/.pip/pip.conf
在config中做如下配置:
1 [global] 2 index-url = http://mirrors.aliyun.com/pypi/simple/ 3 [install] 4 trusted-host = mirrors.aliyun.com
trusted-host
一定要設置,不然會報錯:
1 The repository located at mirrors.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with ‘–trusted-host mirrors.aliyuncs.com’.
升級OK!
(二)pycharm 中設置阿里雲Repository 地址
File --->Settings -->
管理倉庫
編輯 或者 添加 隨意
修改為 https://mirrors.aliyun.com/pypi/simple/
結束,縱享絲滑.....