1. 程式人生 > >PIP安裝Python的scipy,scrapy等包出現“failed building wheel for xxx”問題解決辦法

PIP安裝Python的scipy,scrapy等包出現“failed building wheel for xxx”問題解決辦法

1.在這裡下載對應的.whl檔案,注意別改檔名!

Ctrl + F,輸入lxml,找到下面這段

Lxml, a binding for the libxml2 and libxslt libraries.
lxml‑3.4.4‑cp27‑none‑win32.whl
lxml‑3.4.4‑cp27‑none‑win_amd64.whl
lxml‑3.4.4‑cp33‑none‑win32.whl
lxml‑3.4.4‑cp33‑none‑win_amd64.whl
lxml‑3.4.4‑cp34‑none‑win32.whl
lxml‑3.4.4‑cp34‑none‑win_amd64.whl
lxml‑3.4.4‑cp35‑none‑win32.whl
lxml‑3.4.4‑cp35‑none‑win_amd64.whl
cp後面是Python的版本號,27表示2.7,根據你的Python版本選擇下載。
2.直接進入pip所在的目錄\c:\python34\scripts
然後,把你要安裝的whl檔案都複製在這裡啦。
接下來使用pip install “檔案路徑+whl檔名”, 如 pip install  E:\ANACONDA\Scripts\lxml-3.4.4-cp34-none-win_amd64.whl