Mac使用pycharm编写wxpython程序运行时报错 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. 解决方法 安装python.app 用wpython运行py文件 >pythonw main.py 成功