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

后端 未结 7 1175
谎友^
谎友^ 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 10:14

    Here's what solved my problem when I faced the exact same issue

    Navigate to Project Interpreter, right side of the selection box, click the gear icon, it will show two options add & show all.

    Click show all, if you see the previous existence from the same directory delete that. Click on add or + sign to add a new interpreter and navigate to your project path, navigate down to the virtual environment directory.

    venv/bin/{select the python executable with the version code i.e if you are using python3.6 select python3.6}

    Once selected, you can now click the notice that says install packaging tools, hit apply and done.

    0 讨论(0)
提交回复
热议问题