简体   繁体   English

无法使用 whl 文件为 python 安装 libxml2

[英]Can't install libxml2 for python with whl file

I am having a very hard time installing libxml2.我很难安装 libxml2。 I am trying to use a wheel file to install it with the command line.我正在尝试使用 wheel 文件通过命令行安装它。 I have Python 3.8 but I don't see any.whl files for Python 3.8.我有 Python 3.8 但我没有看到 Python 3.8 的任何.whl 文件。 Do I need to use an earlier version of Python?我是否需要使用早期版本的 Python?

Here is the error when I attempt to install with the whl file in my Python folder:这是我尝试使用 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.

Wheel is installed:轮子安装:

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)

And here is some more info:这里有更多信息:

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

The.whl file is valid for python 2 not 3. .whl 文件对 python 2 而非 3 有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM