我正在尝试使用pyInstaller
冻结我的应用程序,不幸的是,尽管我的.exe
文件已正确创建,但是当我尝试运行该应用程序时,每次使用{{1}都会失败}缺少ImportError
文件,而没有通知丢失哪个文件,如下所示:
dll
经过一番研究,我发现导致问题的File "Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 396, i
n load_module
File "site-packages\matplotlib\pyplot.py", line 31, in <module>
File "Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 396, i
n load_module
File "site-packages\matplotlib\colorbar.py", line 36, in <module>
File "Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 396, i
n load_module
File "site-packages\matplotlib\contour.py", line 20, in <module>
File "Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 396, i
n load_module
File "site-packages\matplotlib\font_manager.py", line 55, in <module>
File "Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 687, i
n load_module
ImportError: DLL load failed: The specified procedure could not be found.
[5532] Failed to execute script Main
是dll
,似乎zlib.dll
没有收集到正确的pyInstaller
,因为当我有尝试将zlib.dll
中的zlib.dll
手动添加到\my\path\to\anaconda\Library\bin
文件夹中,我的应用运行完美。
我正在使用.exe
,Python=2.7
,Anaconda=5.2.0
。