Read timed out異常:
這是因爲國外網站下載太慢導致超時了,可以改用其他下載路徑(使用鏡像),指令如下:
pip install package -i https://pypi.tuna.tsinghua.edu.cn/simple
(package爲需要安裝包名,這個是清華的鏡像,有很多庫或者插件都可以用這個下載)
附加國內的鏡像源,下載成功概率會高很多
清華: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 install package -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn