简体   繁体   English

pycairo“ImportError:DLL加载失败:无法找到指定的模块。”即使安装了DLL

[英]pycairo “ImportError: DLL load failed: The specified module could not be found.” even after DLLs installed

I'm following the pycairo installation instructions here : http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html to install pycairo for use with igraph. 我在这里遵循pycairo安装说明: http//www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html安装pycairo以便与igraph一起使用。

However, even after running the installer and unzipping/copying all DLL's into the site-packages cairo directory according to the instructions, I still get the following error: 但是,即使在运行安装程序并根据说明将所有DLL解压缩/复制到site-packages cairo目录之后,我仍然会收到以下错误:


>>> import cairo
Traceback (most recent call last):
  File "", line 1, in 
  File "c:\Python26\lib\site-packages\cairo__init__.py", line 1, in 
    from _cairo import *
ImportError: DLL load failed: The specified module could not be found.
>>> 

I am running python 2.6.6 under Windows 7. 我在Windows 7下运行python 2.6.6。

Any ideas? 有任何想法吗?

Dependency Walker中打开_cairo.pyd并找出它缺少的内容。

I kinda solved the problem installing the Gtk-Bundle for Windows , wich had the third party dll dependencies. 我有点解决了安装Gtk-Bundle for Windows的问题 ,它有第三方dll依赖。

(I did a dirty solution by pasting the dlls directly into c:/Python27/lib/dist-packages/cairo, because I am not used to Windows anymore and don't know for sure what is the expected place for the dlls to go.) (我通过将dll直接粘贴到c:/ Python27 / lib / dist-packages / cairo中做了一个肮脏的解决方案,因为我不再习惯Windows而且不确定dll的预期位置是什么。)

But my scripts started to work at last. 但我的脚本终于开始工作了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导入错误:DLL 加载失败:找不到指定的模块。(Keras) - ImportError: DLL load failed: The specified module could not be found.(Keras) MeCab:“ImportError:DLL 加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” MeCab:“ ImportError:DLL加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” 导入错误:DLL 加载失败:找不到指定的模块。 安装成功后 package - ImportError: DLL load failed: The specified module could not be found. After successfully installing the package ImportError: DLL load failed: The specified module could not be found 即使该模块已安装 - ImportError: DLL load failed: The specified module could not be found Even though the module has been installed ImportError:DLL加载失败:找不到指定的过程。蟒蛇 - ImportError: DLL load failed: The specified procedure could not be found. Python ImportError:DLL加载失败:找不到指定的模块。 Caffe安装 - ImportError: DLL load failed: The specified module could not be found. Caffe install ImportError:DLL加载失败:找不到指定的模块。 尝试“从PIL导入图像”时 - ImportError: DLL load failed: The specified module could not be found. when trying to “from PIL import Image” 导入 tensorflow 时,出现错误“导入错误:DLL 加载失败:找不到指定的模块。” - While importing tensorflow, got the error 'ImportError: DLL load failed: The specified module could not be found.' DeepSpeech 安装错误:“ImportError:DLL 加载失败:找不到指定的模块。” - DeepSpeech Installation Error: "ImportError: DLL load failed: The specified module could not be found."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM