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

时间:2019-10-04 07:11:51

标签: python html windows import lxml

我在以下代码中收到导入错误,但无法解决

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

错误:

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

1 个答案:

答案 0 :(得分:1)

该软件包安装到解释器或虚拟环境怎么样?