面对有关在venv中安装lxml的问题, [英] Facing problem regarding installation of lxml in venv,

查看:110
本文介绍了面对有关在venv中安装lxml的问题,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用pip设置evalai-cli, 但是我尝试运行时在安装过程中遇到了问题

I am trying to setup evalai-cli using pip, but i am facing problems during setup when i try to run

pip install evalai


在库libxml2中找不到函数xmlCheckVersion.是否已安装libxml2?


Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?

错误:命令错误,退出状态为1: 命令:'c:\ users \ amana \ evalai-cli \ venv \ scripts \ python.exe'-u -c'import sys,setuptools,tokenize; sys.argv [0] =''"'C:\ Users \ amana \ AppData \ Local \ Temp \ pip-install-iwb_ci9r \ lxml \ setup.py'"';; 文件 =''"'C:\ Users \ amana \ AppData \ Local \ Temp \ pip-install-iwb_ci9r \ lxml \ setup.py''"'; f = getattr(tokenize, '''''open'"',打开)(文件); code = f.read().replace('"''\ r \ n'"'', ''"'\\ n''"'); f.close(); exec(compile(code, file ,''"'exec''"')))'安装--record'C:\ Users \ amana \ AppData \ Local \ Temp \ pip-record-tu5o2fvl \ install-record.txt'--single-version-externally-managed --compile --install-headers'c:\ users \ amana \ evalai-cli \ venv \ include \ site \ python3.8 \ lxml' cwd:C:\ Users \ amana \ AppData \ Local \ Temp \ pip-install-iwb_ci9r \ lxml \

ERROR: Command errored out with exit status 1: command: 'c:\users\amana\evalai-cli\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\amana\AppData\Local\Temp\pip-install-iwb_ci9r\lxml\setup.py'"'"'; file='"'"'C:\Users\amana\AppData\Local\Temp\pip-install-iwb_ci9r\lxml\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\amana\AppData\Local\Temp\pip-record-tu5o2fvl\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\amana\evalai-cli\venv\include\site\python3.8\lxml' cwd: C:\Users\amana\AppData\Local\Temp\pip-install-iwb_ci9r\lxml\

错误:b"xslt-config"无法识别为内部或外部命令,\ r \ noperable程序或批处理文件.\ r \ n **确保已安装libxml2和libxslt的开发包**

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 **

我已经使用easy_install lxml& www.lfd.uci.edu 但问题仍然存在 我在Windows 10 64位上运行python 38

I have installed lxml using easy_install lxml & www.lfd.uci.edu but still the problem remains I am on windows 10 64 bit running python 38

推荐答案

尝试转到 https://www.lfd.uci.edu/~gohlke/pythonlibs/
然后您下载文件lxml-4.4.2-cp38-cp38-win_amd64.whl
然后打开命令并导航到包含文件lxml-4.4.2-cp38-cp38-win_amd64.whl的文件夹
然后运行命令 pip install lxml-4.4.2-cp38-cp38-win_amd64.whl

Try to go to https://www.lfd.uci.edu/~gohlke/pythonlibs/
then you download the file lxml-4.4.2-cp38-cp38-win_amd64.whl
then open the Command and navigate to the folder containing the file lxml-4.4.2-cp38-cp38-win_amd64.whl
then run the Command pip install lxml-4.4.2-cp38-cp38-win_amd64.whl

这篇关于面对有关在venv中安装lxml的问题,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆