在python下安装lxml遇到的坑,记录一下:
电脑环境:win10 64位
python环境:python 2.7版本 64位系统
目标:安装lxml ( lxml-3.6.4-cp27-cp27m-win32.whl)
主要步骤就两步:
1:安装工具wheel : pip install wheel
2:安装lxml:pip install lxml-3.6.4-cp27-cp27m-win32.whl
“预期“”会遇到的坑:
1,记得先安装wheel工具
2,filename.whl is not supported wheel on this platform
可以尝试升级pip工具:python -m pip install --upgrade pip
3,升级工具后应该就没问题了,需要注意的是lxml的版本:cp27 代表python版本2.7; win32代表python支持的版本号。 lxml版本可到网站自行下载 :http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
参考:http://stackoverflow.com/questions/28568070/filename-whl-is-not-supported-wheel-on-this-platform
https://www.zhihu.com/question/26857761