Python Setuptools无法安装lxml

时间:2019-07-15 03:54:20

标签: lxml setuptools python-2.6

我正在尝试将我的项目发布到PyPi。我正在使用setuptools来管理依赖项。依赖项之一是lxml。但是setuptools无法找到或安装该软件包。但是,当我手动使用pip install lxml时,一切正常。假设setuptools在后​​台也使用pip命令,我想知道异常的可能原因。例如我当前的setup.py如下:

...
install_requires=["beautifulsoup4",
                        "lxml",
                        "numpy",
                        "PyBrain",
                        "scipy",
                        "tqdm"
                        ]
...

numpyscipy等其他软件包也可以从setup.py安装。但是lxml失败,但有以下例外:

ERROR: Could not find a version that satisfies the requirement lxml
ERROR: No matching distribution found for lxml

任何人都可以提示可能的解决方法吗?

0 个答案:

没有答案