Pyinstaller 给出错误(“加载 Python 时出错……找不到合适的图像”)

Far*_*sk1 6 python pyinstaller python-imaging-library

我在 Mac 上的 pyinstaller 有这个问题,当我单击创建的可执行文件时会出现此错误:

[9888] Error loading Python lib '/Users/Faris/Downloads/as5/dist/startscreen/Python': dlopen: dlopen(/Users/Faris/Downloads/as5/dist/startscreen/Python, 10): no suitable image found.  Did find:
    /Users/Faris/Downloads/as5/dist/startscreen/Python: code signature invalid for '/Users/Faris/Downloads/as5/dist/startscreen/Python'
Run Code Online (Sandbox Code Playgroud)

这是一个使用 PIL 和 4 个 PNG 文件的 GUI 应用程序。我怎样才能解决这个问题?

Mar*_*ent 0

尝试从 PyInstaller 安装最新的开发版本:

pip3 install --upgrade https://github.com/pyinstaller/pyinstaller/tarball/develop
Run Code Online (Sandbox Code Playgroud)

或者

pip install --upgrade https://github.com/pyinstaller/pyinstaller/tarball/develop
Run Code Online (Sandbox Code Playgroud)