首页 > 解决方案 > 当我尝试导入 lxml.html 时出现导入错误

问题描述

我在以下代码中收到导入错误,我无法修复它

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

标签: pythonhtmlwindowsimportlxml

解决方案


What about install this package to interpreter or virtual environment?


推荐阅读