pip安裝特別慢

weixin_34249678發表於2018-01-04

一、原因

眾所周知的原因

二、解決方案

1.翻牆

2.使用國內映象

可以在使用pip的時候加引數-i https://pypi.tuna.tsinghua.edu.cn/simple

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider

這樣就會從清華這邊的映象去安裝pyspider庫。

3.下載whl,手動安裝

①下載whl檔案
http://www.lfd.uci.edu/~gohlke/pythonlibs/
②然後切換到包含當前whl檔案的檔案處用命令列開啟,
然後輸入

pip install ×××.whl

相關文章