PyInstaller可执行文件,使用wxPython缺少Python框架构建
我正在尝试使用PyInstaller为我的Python程序构建本机可执行文件 我运行cli并使用命令生成可执行文件:PyInstaller可执行文件,使用wxPython缺少Python框架构建,python,python-3.x,wxpython,pyinstaller,Python,Python 3.x,Wxpython,Pyinstaller,我正在尝试使用PyInstaller为我的Python程序构建本机可执行文件 我运行cli并使用命令生成可执行文件:pyinstaller app.py 当我运行我的可执行文件时,我得到以下输出: /usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py:623: MatplotlibDeprecationWarning: The MATPLOTLIBDATA environment vari
pyinstaller app.py
当我运行我的可执行文件时,我得到以下输出:
/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py:623: MatplotlibDeprecationWarning:
The MATPLOTLIBDATA environment variable was deprecated in Matplotlib 3.1 and will be removed in 3.3.
exec(bytecode, module.__dict__)
Unable to revert mtime: /Library/Fonts
Unable to revert mtime: /Library/Fonts/IBM-Plex-Arabic
Unable to revert mtime: /Library/Fonts/IBM-Plex-Devanagari
Unable to revert mtime: /Library/Fonts/IBM-Plex-Mono
Unable to revert mtime: /Library/Fonts/IBM-Plex-Sans
Unable to revert mtime: /Library/Fonts/IBM-Plex-Sans-Condensed
Unable to revert mtime: /Library/Fonts/IBM-Plex-Sans-Hebrew
Unable to revert mtime: /Library/Fonts/IBM-Plex-Sans-Thai-Looped
Unable to revert mtime: /Library/Fonts/IBM-Plex-Serif
Unable to revert mtime: /Library/Fonts/IBM-Plex-Thai
This program needs access to the screen. Please run with a
Framework build of python, and only when you are logged in
on the main display of your Mac.
我正在使用wxPython库为我的程序呈现GUI——我相信这条消息与此相关
欢迎提供任何建议。在wxPython源代码树中有一个将PyInstaller与wxPython应用程序一起使用的示例,位于。我不记得需要做任何特殊的事情来让它工作,但是你可以用它来帮助找出问题所在。如果构建superdoodle.app不起作用,那么请查看您的Python和PyInstaller安装,因为它对我仍然有效。如果确实有效,请仔细查看您的应用程序以及如何使用PyInstaller。@RobinDunn这是OPs操作系统的问题,而不是wx或PyInstaller。wxPython源代码树中有一个将PyInstaller与wxPython应用程序一起使用的示例,位于。我不记得需要做任何特殊的事情来让它工作,但是你可以用它来帮助找出问题所在。如果构建superdoodle.app不起作用,那么请查看您的Python和PyInstaller安装,因为它对我仍然有效。如果确实有效,请仔细查看您的应用程序以及如何使用PyInstaller。@RobinDunn这是OPs操作系统的问题,而不是wx或PyInstaller。