" ImportError:DLL加载失败" SciPy和cx_freeze不能一起工作

时间:2014-08-01 07:14:29

标签: python windows dll scipy cx-freeze

似乎SciPycx_freeze无法协同工作,这是一个已知问题(https://bitbucket.org/anthony_tuininga/cx_freeze/issue/43/import-errors-when-using-cx_freeze-with)。当我删除import scipy时,我的代码运行良好。

我在这里研究了很少的其他网站并安装了Dependency Walker。它说ieshims.dll缺失了。我已经安装了ieshims.dll。我已经安装了所有其他.dll个文件。现在我的控制台窗口给出了错误:

Traceback (most recent call last):
  File "PyMoss.py", line 13, in <module>
  File "C:\Python33\lib\site-packages\scipy\optimize\__init__.py", line 163, in <module>
    from .optimize import *
  File "C:\Python33\lib\site-packages\scipy\optimize\optimize.py", line 35, in <module>
    from .linesearch import (line_search_wolfe1, line_search_wolfe2,
  File "C:\Python33\lib\site-packages\scipy\optimize\linesearch.py", line 16, in <module>
    from scipy.optimize import minpack2
  File "<loader>", line 10, in <module>
  File "<loader>", line 8, in __load
ImportError: (DLL load failed: The specified module could not be found.)  
  'C:\\Python33\\dist\\scipy.optimize.minpack2.pyd'

我可以在我的构建文件夹中看到scipy.optimize.minpack2.pyd但是却产生了这样的错误。请帮助我,因为我无法使用SciPycx_freeze

运行相同的功能,因此我可以在Python IDLE中运行py2exe函数

先谢谢

0 个答案:

没有答案