我正在尝试使用PyInstaller为我的Python程序构建本机可执行文件。
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,我相信这条消息与此相关。