无法在python上安装libxml2 - Linux / Windows

时间:2017-02-09 20:41:31

标签: python linux windows libxml2

我是python的新手,我正在尝试使用libxml2包。 这就是我得到的:

Executed command:
pip install libxml2-python

Error occurred:
Non-zero exit code (1)

Command output:

Collecting libxml2-python

  Could not find a version that satisfies the requirement libxml2-python (from versions: )
No matching distribution found for libxml2-python

我正在使用Kali Linux amd_64,虽然我在Windows 7 64上尝试过并得到同样的错误。我试过32和64位版本的Python 2.7,3.5.3,3.6。我正在使用PyCharm。我已将它添加到requirements.txt中,尝试从那里添加它,以及在具有不同python版本的venv和non-venv中添加它。 我已经尝试在本地安装它,我已经尝试了pip安装和轻松安装,以及pip install ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.9.tar.gz

我还安装了Anaconda,认为它会对它进行排序,因为它预装了libxml2。当我尝试在anaconda中导入它时,我得到:

Executed command:
Conda /root/anaconda3/bin/conda install -p /root/anaconda3 libxml2-python==2.6.21 -y

Error occurred:
PackageNotFoundError: Package not found: '' Package missing in current linux-64 channels:

Command output:
PackageNotFoundError: Package not found: '' Package missing in current linux-64 channels: 
  - libxml2-python ==2.6.21

You can search for packages on anaconda.org with

    anaconda search -t conda libxml2-python

You may need to install the anaconda-client command line client with

    conda install anaconda-client

安装了anaconda客户端。 也:

conda install -p /root/anaconda3 libxml2 -yFetching package metadata .........
Solving package specifications: .

# All requested packages already installed.
# packages in environment at /root/anaconda3:
#
libxml2                   2.9.4                         0  

欢迎任何建议,请帮助!

0 个答案:

没有答案