How to resolve "Invalid Python interpreter name 'python.exe'!" error in PyCharm How to resolve "Invalid Python interpreter name 'python.exe'!" error in PyCharm python-3.x python-3.x

How to resolve "Invalid Python interpreter name 'python.exe'!" error in PyCharm


I got the same error message when I imported a project of an existing virtual environment to pyCharm. Though the name and path of the exe was correct, pyCharm did not accept it.My solution was to remove the Interpreter in pyCharm and to add it again. Then the Error was gone. Perhaps that can help someone ...


The EAP (Early Access Program) build Pavel suggests did not work for me. I hope this gets sorted out in PY-33406 as Pavel suggests.

In the responses for that issue, the thing that worked for me is included. I created a virtual environment using venv and was able to use that python interpreter. As it says on that page...

  • Open the windows prompt
  • Go to the project root: cd X:\path\to\project
  • Type python -m venv venv
  • Chose "existing interpreter" instead ofcreating a new venv using Pycharm and pick the Python binary from thevirtualenv you created in the previous step

Hope that helps, happy to update this to add more detail if not.


Remove the interpreter (by using minus sign) and add it again!