在python 3.6中安装libxml2和libxslt

问题描述 投票:1回答:1

我在使用Pycharm和PIP在python 3.6 64bit中安装lxml 3.6.4时遇到一些问题。

pip install lxml==3.6.4

ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **

安装libxml时

pip install libxml2-dev

我收到以下错误:

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

运行libxslt时

pip install libxslt

我收到此错误

Collecting libxslt
  Could not find a version that satisfies the requirement libxslt (from versions: )
No matching distribution found for libxslt

最终目标是在Pycharm上安装pyiso。

我的规格-Windows 7-64Python 3.6

python-3.x pip lxml
1个回答
0
投票

在Linux上,纠正了输入错误,上面的@pguardiario的注释为我解决了这个问题。

sudo apt-get install libxml2-dev libxslt-dev

然后:

conda install lxml
© www.soinside.com 2019 - 2024. All rights reserved.