2017-04-18 56 views
0

我有一个需要使用Enthought Python(EDM)和Anaconda Python的Python 3运行的wxPython GUI。pythonw缺少Enthought的Python 3发行版

问题是,使用Python的蟒蛇时,我必须使用pythonw或脚本失败,此错误:

#/usr/bin/env pythonw 

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 2.x中,我通过指定解决了这个

这两个雨棚Python 2和Python的蟒蛇工作2

然而,EDM Python 3里似乎缺少pythonw.exe,所以我必须编辑shebang行至

#/usr/bin/env python 

让我的脚本与EDM蟒蛇3

所以运行,有没有使用与EDM蟒蛇3 pythonw可执行的方法吗?

回答

0

肯定。只需创建一个名为pythonw的脚本并将其放入$PATH

#!/bin/sh 

exec /usr/bin/env python "[email protected]"