1. 程式人生 > >疑難雜癥匯總(私人筆記)

疑難雜癥匯總(私人筆記)

href pre 默認 .cn strong -- 大學 修改 free

pip下載速度太慢
這是由於pip默認的鏡像站太慢了,可以修改為國內的鏡像站,國內比較好用的鏡像站如下:
清華:https://pypi.tuna.tsinghua.edu.cn/simple
阿裏雲:http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
華中理工大學:http://pypi.hustunique.com/
山東理工大學:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
修改pip的配置文件,添加國內的鏡像站即可。linux下的配置文件為~/.pip/pip.conf,windows系統為C:\Users\xx\pip\pip.ini,xx為用戶名。如果目錄不存在,則新建即可。之後再配置文件中添加如下內容:

[global]
 index-url = https://pypi.tuna.tsinghua.edu.cn/simple

conda下載速度太慢
這是由於conda默認的鏡像站太慢了,配置一下conda的鏡像庫即可,例如添加清華tuna鏡像站,執行下面的命令即可:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

疑難雜癥匯總(私人筆記)