'Cannot setup a Python SDK' in PyCharm project using virtualenv after OS reinstallation

后端 未结 7 1173
谎友^
谎友^ 2021-01-01 09:11

I re-installed windows and opened an existing Pycharm project and get the error \'SDK seems invalid\' in Settings > Project Interpreter.

The project interpreter path

7条回答
  •  囚心锁ツ
    2021-01-01 09:50

    I currently have the same issue, that I can't install any package tool in Pycharm and that freak me out. Here is the step I fixed it, just want to share. OuO.

    Step 1

    Find show all in the right corner of a setting icon  Find show all in the right corner of a setting icon

    Step 2

    Click the + icon to open Add python Interpreter  Click the + icon to open Add python Interpreter

    Step 3

    In New environment 's Location Under Virtualenv Environment select file  In New environment 's Location Under Virtualenv Environment select file

    Step 4

    Find your Pycharm file and make an empty file under it and click OK and keep click OK  Find your Pycharm file and make an empty file under it and click OK and keep click OK

    Step 5

    Now in Project Interpreter select the empty file you just create and now you should be fine to install Pycharm package.Hope this solve your problem.  Now in Project Interpreter select the empty file you just create and now you should be fine to install Pycharm package.Hope this solve your problem.

提交回复
热议问题