Unable to Debug Dev Appserver using pycharm, but able to run fine
I had the same issue after starting new AppEngine projects on python 3. Initially, I thought the problem was with a new version of Google Cloud SDK. I spent a lot of time linking/unlinking python versions and playing around the environment variables.
But eventually, update of PyCharm to 2021.1.2 fixed the issue.
Attempting to run a python 2.7 app engine app locally using PyCharm (which uses dev_appserver) my machine is python 3.7 but I have a python 2.7 virtual env setup as the project interpreter, which works fine when running the project.
However when attempting to debug the same run config (which runs fine) I am getting the following error
ERROR: (dev_appserver) python2: command not found
I can run the python2 command in my terminal both inside and outside the virtual environment so I am not sure what is wrong here.
I am currently running Pop!_OS 20.04 LTS if that helps.