我也有同样的问题.
#export PYTHONPATH=/usr/local/lib/python2.7/site-packages/
如果没有帮助的话,也可以考虑一下这个 idea .记录错误:
/Users/username/Library/Logs/PyCharm40/idea.log
我犯了以下错误:
Your PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x!
PYTHONPATH is currently: "/usr/local/lib/python2.7/site-packages/"
You should `unset PYTHONPATH` to fix this.