可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
When I switch my PyCharm to use Python 3.4.3 I am getting the error: Invalid Python SDK
Also PyCharm does not automatically find the Python 3.4 interpreter for me, even though it is on desired path /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4.
See screenshot:
Although the interpreter does work. I am able to get correct output as expected, but code completion related to python 3.4 is not working.
e.g. print("hello world!) still shows an error on the editor, but the console shows the correct output.
回答1:
I had the same issue. Try to comment/remove the PYTHONPATH variable in your ~/.bash_profile #export PYTHONPATH=/usr/local/lib/python2.7/site-packages/
If it does not help it also may be useful to look in the idea.log for the errors: /Users/use