我这安装怎么报错,无法进行安装呢?

来源:4-1 BeautifulSoup4的安装与应用

热爱编程学习

2021-09-12 01:50:55

​pip install lxml

Command "D:\python3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-ymkh21oc\\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\DELL\AppData\Local\Temp\pip-record-zjmuzn05\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\DELL\AppData\Local\Temp\pip-install-ymkh21oc\lxml\

写回答

1回答

时间,

2021-09-12

同学,你好!

方法一、可以使用命令:python -m pip install --upgrade pip更新pip后,更安装下该模块。

方法二

1、在这里下载对应的.whl文件,注意别改文件名!https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

https://img.mukewang.com/climg/613d66640926190704020525.jpg

2、在终端中进入.whl所在的文件夹,执行下述命令即可

pip install 带后缀的完整文件名

祝学习愉快!

0

0 学习 · 4469 问题

查看课程