【问题标题】:ImportError: DLL load failed pyinstallerImportError:DLL 加载失败 pyinstaller
【发布时间】:2023-11-29 00:21:02
【问题描述】:

我用 pyinstaller 创建了 .exe 文件,当我尝试启动它时,出现了这样的错误:

C:\pyinstaller-develop>C:\pyinstaller-develop\RichardINC_aws\dist\RichardINC_aws.exe 回溯(最近一次通话最后): 文件“”,第 8 行,在 文件“C:\pyinstaller-develop\PyInstaller\loader\pyimod03_importers.py”,行 3 64,在load_module中 exec(字节码,模块。dict) 文件“C:\Python27\lib\site-packages\pillow-3.0.0-py2.7-win32.egg\PIL\Image.py” ,第 66 行,在 文件 "C:\pyinstaller-develop\PyInstaller\loader\pyimod03_importers.py", 第 364 行,在 load_module 中 exec(字节码,模块。dict) 文件“C:\Python27\lib\site-packages\pillow-3.0.0-py2.7-win32.egg\PIL_imaging.py”, 第 7 行,在 文件“C:\Python27\lib\site-packages\pillow-3.0.0-py2.7-win32.egg\PIL_imaging.py”, 第 6 行,在 bootstrap 中 ImportError:DLL 加载失败:═х эрщфхэ єърчрээ√щ ьюфєы№。 RichardINC_aws 返回 -1

【问题讨论】:

    标签: dll load importerror pyinstaller


    【解决方案1】:

    也许this thread on Github 涉及似乎是 pyinstaller 开发人员的内容可能会有所帮助。我在适用于 Windows 的 32 位和 64 位版本的 Python 3.5.1 中遇到了类似的问题,但在 Debian 中适用于 python 3.4.2 的 pyinstaller 却没有(尽管后者创建了无法在我的 64-有点 Windows,但在 Linux 中运行良好)。

    【讨论】:

      最近更新 更多