似乎SciPy
和cx_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
但是却产生了这样的错误。请帮助我,因为我无法使用SciPy
或cx_freeze
py2exe
函数
先谢谢