无法使用WHL文件为Python安装libxml2

时间:2019-10-25 22:20:44

标签: python libxml2

我很难安装libxml2。我正在尝试使用Wheel文件通过命令行进行安装。我有Python 3.8,但看不到Python 3.8的任何.whl文件。我需要使用早期版本的Python吗?

当我尝试使用Python文件夹中的whl文件进行安装时,这是错误:

C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>pip install libxml2_python-2.9.3-cp27-none-win32.whl
ERROR: libxml2_python-2.9.3-cp27-none-win32.whl is not a supported wheel on this platform.

车轮已安装:

C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>python -m pip install wheel
Requirement already satisfied: wheel in c:\users\jack\appdata\local\programs\python\python38-32\lib\site-packages (0.33.6)

这是更多信息:

C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>where python
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32\python.exe
C:\Users\Jack\Anaconda3\python.exe

C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>where pip
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe
C:\Users\Jack\Anaconda3\Scripts\pip.exe

C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>where pip3
C:\Users\Jack\AppData\Local\Programs\Python\Python38-32\Scripts\pip3.exe

C:\Users\Jack\AppData\Local\Programs\Python\Python38-32>python -c"import struct;print( 8 * struct.calcsize('P'))"
32

1 个答案:

答案 0 :(得分:0)

.whl文件对python 2无效,对3有效。