Anaconda Python 3.6 – pythonw和python应该是等价的吗?
发布时间:2020-12-20 13:17:19 所属栏目:Python 来源:网络整理
导读:根据 Python 3文档,python和pythonw应该等同于运行GUI脚本 as of 3.6 With older versions of Python,there is one Mac OS X quirk that you need to be aware of: programs that talk to the Aqua window manager (in other words,anything that has a GUI)
根据
Python 3文档,python和pythonw应该等同于运行GUI脚本
as of 3.6
但是,我刚刚使用Python 3.6安装了Anaconda,如果我尝试使用python而不是pythonw运行我的wxPython GUI,我仍然会得到非框架构建错误: 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版本是: Python 3.6.0 :: Anaconda 4.3.1 (x86_64) 解决方法
答案可以在这里找到:
How to use a framework build of Python with Anaconda
简而言之,使用命令 conda install python.app 和pythonw将被安装. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |