I installed anaconda instead of system python on mac, but when I print
import wx
app = wx.App()
I got it:
This program needs access to the screen. Run the python build using the Framework and only when you log in to your Mac’s main display.
I am using a script :
#!/bin/bash
PYVER=2.7
PYTHON=/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python$PYVER
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"`
export PYTHONHOME=$ENV
exec $PYTHON "$@"
but he just used the python system. Do not use lib in anaconda. I want to use wx GUI in anaconda, how to solve the problem?
source
share