小编And*_*per的帖子

如何在 macOS 12.4 (Monterey) 上使用 python.org 安装程序运行 wxPython

我想从 python.org 安装 python 并让它在 macOS 的终端中与 wxPython 一起使用:

  • 使用 macOS 64 位 universal2 安装程序安装 python 3.9.13
  • 使用 pip 安装 wxPython -pip3 install -U wxPython
  • 在 shell 中启动 python 并尝试启动 wx 应用程序:
DB0837:~ andypiper$ /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
Python 3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:37:23) 
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.App()
This program needs access to the screen. Please run with a
Framework build of python, and only when …
Run Code Online (Sandbox Code Playgroud)

python macos

3
推荐指数
1
解决办法
399
查看次数

标签 统计

macos ×1

python ×1