求助,Python3.5,windows10 下安装 lxml 失败
2017-10-25 · 百度知道合伙人官方认证企业
育知同创教育
1【专注:Python+人工智能|Java大数据|HTML5培训】 2【免费提供名师直播课堂、公开课及视频教程】 3【地址:北京市昌平区三旗百汇物美大卖场2层,微信公众号:yuzhitc】
向TA提问
关注
展开全部
在win10 64位系统安装 lxml (Python 3.5)
本想直接用pip install lxml 命令安装完事,但是由于安装过程中跟VS的一些东西冲突怎么都安装不上,搜索到以下方法,问题解决。
步骤:
1.下载跟python匹配的.whl 文件(lxml-3.6.0-cp35-cp35m-win_amd64.whl)下载地址 也可以下载附件,但未必适合你。
2.安装 python -m pip install lxml-3.6.0-cp35-cp35m-win_amd64.whl
可能出现的问题
lxml-3.6.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform
版本不匹配,一定要对应版本
cp35 means CPython 3.5 you need lxml-3.6.0-cp35-cp35m-win_amd64.whl instead.
源自 stackoverflow
Python 3.5 - how to install lxml in Windows 7 64 bits
复制代码
1. go to this repository and download a version which matches your Python installation (the version number, and 32- vs 64-bit. I use Python 3.5.1 64-bit, installed on Windows 10, so on that page, I chose lxml-3.6.0-cp35-cp35m-win_amd64.whl. You say you use the 32-bit version, so use a version that matches that.
My download directory is d:\Downloads. Python must be in your PATH environment variable for the next step to work. Use a command like the following, changing "D:\Downloads" to the pathname to your download directory. Then, at a DOS prompt, type:
2. python -m pip install "D:\Downloads\lxml-3.6.0-cp35-cp35m-win_amd64.whl" lxml-3.6.0-cp35-cp35m-win_amd64.whl
本想直接用pip install lxml 命令安装完事,但是由于安装过程中跟VS的一些东西冲突怎么都安装不上,搜索到以下方法,问题解决。
步骤:
1.下载跟python匹配的.whl 文件(lxml-3.6.0-cp35-cp35m-win_amd64.whl)下载地址 也可以下载附件,但未必适合你。
2.安装 python -m pip install lxml-3.6.0-cp35-cp35m-win_amd64.whl
可能出现的问题
lxml-3.6.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform
版本不匹配,一定要对应版本
cp35 means CPython 3.5 you need lxml-3.6.0-cp35-cp35m-win_amd64.whl instead.
源自 stackoverflow
Python 3.5 - how to install lxml in Windows 7 64 bits
复制代码
1. go to this repository and download a version which matches your Python installation (the version number, and 32- vs 64-bit. I use Python 3.5.1 64-bit, installed on Windows 10, so on that page, I chose lxml-3.6.0-cp35-cp35m-win_amd64.whl. You say you use the 32-bit version, so use a version that matches that.
My download directory is d:\Downloads. Python must be in your PATH environment variable for the next step to work. Use a command like the following, changing "D:\Downloads" to the pathname to your download directory. Then, at a DOS prompt, type:
2. python -m pip install "D:\Downloads\lxml-3.6.0-cp35-cp35m-win_amd64.whl" lxml-3.6.0-cp35-cp35m-win_amd64.whl
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询