내가 피닉스가 지원하는 파이썬 3의 버전을 모르겠어요 (OS X의 파이썬 3.3 wxPython을 피닉스을 시도 Miniconda 환경에, 나는 그것을 강제로 설치합니다.wxPython을 파이썬 3
>>> import wx
>>> wx.App()
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.
를 지금 읽고 이 wxPython을이 VIRTUALENV와 함께이 문제가이 스크립트를 통해 수정을 제공 말한다 this : 나는 BASH를 읽을 수
#!/bin/bash
# what real Python executable to use
PYVER=2.7
PYTHON=/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python$PYVER
# find the root of the virtualenv, it should be the parent of the dir this script is in
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"`
# now run Python with the virtualenv set as Python's HOME
export PYTHONHOME=$ENV
exec $PYTHON "[email protected]"
하지만 PYTHONHOME 설정의 문제처럼 보이는 ($ 무엇 @?). 파이썬 2가 아니라 파이썬 3에서 wxPython Phoenix를 사용하고 있습니다. 그리고 virtualenv를 사용하지 않고 있습니다. . 나는 미니콘다. 나는 PYTHONHOME을 어디에 둘 것인지 모르겠다. 나는 PYTHONHOME = "/ Users/username/miniconda3 /"에 설정했지만 작동하지 않습니다.
'$ @'는 스크립트에 대한 인수입니다. 일부 환경 변수를 설정 한 후 파이썬에 전달합니다. – asmeurer