查询包依赖 conda search pageage_name --info
补充一下
的答案。
1.step 1
我按照深海鱼的答案去做之后,还是不行。
cmd 运行 pip install filename.whl 还是报错, 提示:
lxml-3.7.1-cp27-cp27m-win32.whl is not a supported wheel on this platform.
2.step 2
然后我跑去stackoverflow搜到了这个答案:
filename.whl is not supported wheel on this platform
然后一哥们回答他遇到过同样的问题,然后升级 pip 完美解决。
python -m pip install --upgrade pip
3.step 3
然后我升级了 pip ,还是不行。
原因是我安装的是
lxml-3.7.1-cp27-cp27m-win_amd64.whl
然后继续从 step2 的 StackOverflow 的回答中找到了答案。有一哥们回答他遇到了一模一样的问题,pip也升级了,但是还是报错:
scipy-0.17.0-cp35-none-win_amd64.whl is not supported wheel on this platform
然后那哥们说:“realized that amd64 is not about my Windows, but about the Python version. Actually I am using a 32 bit Python on a 64 bit Windows. Installing the following file solved the issue(amd64跟系统无关,跟Python的版本有关系。虽然他的电脑是64位,但是他的Python版本是32位,于是他装了32位的.whl 文件,然后成功了):
scipy-0.17.0-cp35-none-win32.whl
”
4. step 4
于是我就按照他的做法,安装32位的,果然成功。如下:
D:\spider>pip install lxml-3.7.1-cp27-cp27m-win32.whl
Processing d:\spider\lxml-3.7.1-cp27-cp27m-win32.whl
Installing collected packages: lxml
Successfully installed lxml-3.7.1
-----------------------------------------------------------------以下无需理会------------------------------------------------------------------------------------
1.下载 https://www.lfd.uci.edu/~gohlke/pythonlibs/找到对应版本的whl文件
2.安装进入下载保存的路径: 输入pip install lxml-4.5.2-cp39-cp39-win_amd64.whl进行安装就可以了(安装前有时候先更新以下
1.PIP更新:python -m pip install --upgrade pip -i https://pypi.douban.com/simple
2.更新 setuptools :pip install --upgrade setuptools
3.安装wheel:python -m pip install wheel
)。
安装pip install lxml-4.5.2-cp39-cp39-win_amd64.whl 报一下错误
1.提示error :visual c++ 14.0