pyinstaller将错误的zlib.dll添加到exe文件夹

时间:2018-08-30 13:23:07

标签: python pyinstaller zlib

我正在尝试使用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文件夹中,我的应用运行完美。

我正在使用.exePython=2.7Anaconda=5.2.0

0 个答案:

没有答案