spyder中的Python 2.7.12 DLL加载失败(Anaconda 4.2.0 32位)

时间:2016-11-22 16:53:09

标签: python python-2.7 dll swig spyder

在Windows7上,我通过可执行文件安装了一个模块。

如果我转到命令行,import mymodule可以正常工作。

但是,如果我打开spyder,在python控制台上就会失败:

>>> import mymodule
  File "D:\anaconda32\lib\site-packages\mymodule.py", line 28, in <module>
    _mymodule = swig_import_helper()
  File "D:\anaconda32\lib\site-packages\mymodule.py", line 20, in swig_import_helper
    import _mymodule
ImportError: DLL load failed: The specified procedure could not be found.

在Spyder的IPython控制台上,模块导入ok。虽然,在启动时,我会重复以下消息两次:

  

内核死了,重启

有人能解释一下这里发生了什么吗?

我已经尝试过清除python系统并重新安装。

根据其他类似的问题,我检查了mymodule.pyd并发现了一些警告:

enter image description here

我不确定下一步采取什么步骤,任何想法?

类似但不重复的问题:

DLL load failed with PyQGIS

DLL load failed with scipy.optimize?

How to install TensorFlow on Windows?

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

0 个答案:

没有答案