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



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM