Invalid Python SDK Error while using python 3.4 on PyCharm

后端 未结 4 724
别跟我提以往
别跟我提以往 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:20

    I got the same issue, when I updated Python (3.x) version via Home brew in MacOS. Above answers didn't work for me. But with those, I realize that, it's an issue with linking the directories. I deleted ~/.virtualenvs folder and recreated all virtual envs.

    $ ls -a ~/.virtualenvs
    local-dev wdias-dev
    $ rm -rf ~/.virtualenvs
    $ which python3
    /usr/local/bin/python3
    $ mkvirtualenv local-dev --python=/usr/local/bin/python3
    $ mkvirtualenv wdias-dev --python=/usr/local/bin/python3
    

    Open the PyCharm again, and it works fine.

提交回复
热议问题