wxpython安装2.9安装后提示找不到.exe文件_使用wxPython的PyInstaller可执行文件缺少Python框架构建...

在尝试使用PyInstaller将Python程序转换为本机可执行文件时,遇到错误提示关于matplotlib的警告以及屏幕访问权限问题。错误表明需要使用Python的Framework构建,并且在Mac的主要显示器上运行。该问题可能与使用wxPython库创建GUI有关。
摘要由CSDN通过智能技术生成

我正在尝试使用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,我相信这条消息与此相关。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值