【发布时间】:2016-11-01 06:51:21
【问题描述】:
第一次使用python,需要导入htql
当我运行这段代码时:
import htql;
page="<a href=a.html>1</a><a href=b.html>2</a><a href=c.html>3</a>";
query="<a>:href,tx";
for url, text in htql.HTQL(page, query):
print(url, text);
我收到以下错误:
导入html; ImportError: DLL load failed: 找不到指定的模块。 error screenshot
我试图解决这里提到的错误ImportError: DLL load failed: The specified module could not be found
错误依然存在!!
我也正在通过以下链接安装 Visual C++ Redistributable für Visual Studio 2015:https://www.microsoft.com/de-at/download/details.aspx?id=48145 修复丢失的 DLL
错误仍然存在!
请帮忙!
提前考虑..
【问题讨论】:
-
这绝对是 HTQL 包损坏设置或配置错误。通过描述你是如何安装这个包的来调整你的问题可以揭示出了什么问题
-
我按照这里的描述安装了它:htql.net/htql-com-manual.pdf
-
PDF 手册中的说明是针对 COM 接口的(例如供 C++ 应用程序使用),python 不使用此类。对于 python 脚本的使用,您应该尝试按照htql.net 网站起始页中的说明安装它 - 将适用于您的 python 版本的存档解压缩到 python 安装 DLLs 子目录中
-
谢谢它的工作(Y)
-
@agg3l 您可以将您的回复作为答案发布