2017-04-18 59 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]"