[英]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.