简体   繁体   English

当我尝试导入 lxml.html 时出现导入错误

[英]import error when i try to import lxml.html

I received import error in the following code and I can't fix it我在以下代码中收到导入错误,我无法修复它

from urllib.error import HTTPError
from urllib.error import URLError
import urllib.request as url
import lxml.html

the error:错误:

Exception has occurred: ImportError
DLL load failed: The specified module could not be found.
  File "C:\Users\ORIB1\Downloads\PageRank-master (1)\PageRank-master\src\altparse\alt_htmlparser.py", line 4, in <module>
    import lxml.html

What about install this package to interpreter or virtual environment?将此 package 安装到解释器或虚拟环境怎么样?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM