Python,安装 .pyd 文件 : ImportError: DLL load failed

标签 python

我正在尝试从此处安装 PyLZJB.pyd 文件:

 https://code.google.com/p/pylzjb/downloads/list

我已经下载了该文件并将其放在我的 Python27/DLLs 文件夹中,我还看到了其他一些 .pyd 文件。我在 Windows 上。

我试过了

import PyLZJB.pyd

import PyLZJB

根据我也试过的另一个答案:

import sys
sys.path.append("C:\Python27\DLLs")

导入之前。

我继续收到消息:

ImportError: DLL load failed: The specified module could not be found.

最佳答案

站点中只有为 Python-2.6 构建的 dll。

您不能在 Python 2.7 中使用为 Python2.6 构建的 dll。

找到为您的系统构建的 dll(平台、python 版本应该匹配)。或者自己构建。

关于Python,安装 .pyd 文件 : ImportError: DLL load failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18585090/

相关文章:

python - 尝试使用 while 循环计算 sqroot 时出现代码问题

python - Python 中的重音字母

c++ - 如何使用 Python 绑定(bind)到 Clang 解析单个文件?

python - 如何将子上下文的管理委托(delegate)给父级

python - 调试 C 程序时如何将 gdb 值转换为 python 数字对象

通过理解将 Python 列表转换为字典

python - 二维 ndarray 的 Numpy fromfile 的填充顺序是什么?

python - 我们如何在 jinja2/weasyprint python 中传递图像变量

Python - 计算 Pandas 数据框中的非字母数字字符

python - python上的 latex :\alpha and\beta don't work?