python - 当我尝试导入 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
解决方案
What about install this package to interpreter or virtual environment?
推荐阅读
- php - 我想获得所有具有球队名称的球员
- ssis - 复制解决方案后,包中缺少项目级连接
- visual-studio - 如何处理:应用程序看不到我的 dll 中的 func
- amazon-web-services - 如何将所有 Kafka 主题转移到工作代理?
- javascript - 调用json时动态索引结构加载转换为数组
- java - 有没有办法在同一个线程中发送电子邮件?
- python - GridSearchCV 的 best_param_ 中不存在最佳评分指标
- time-complexity - 关于时间复杂度示例的问题
- javascript - 为什么没有在节点 js csrf 中创建令牌?
- django - 聚合具有相同字段值的查询项