Invalid Python SDK Error while using python 3.4 on PyCharm

后端 未结 4 771
别跟我提以往
别跟我提以往 2021-01-17 10:51

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

4条回答
  •  一个人的身影
    2021-01-17 11:26

    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/username/Library/Logs/PyCharm40/idea.log
    

    I had the following errors:

    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.
    

提交回复
热议问题