Home > Enterprise >  Python not working in VScode - Error MSG: 'python' is not recognized as an internal or ext
Python not working in VScode - Error MSG: 'python' is not recognized as an internal or ext

Time:01-05

I saw a similar question posted but the solutions didn't help, since they said to restart. Basically, I downloaded python 3.11, I made sure to add it to environment variables so the path is correct. Now CMD works fine if I search "python.exe". I will get it recgonized, but for some reason VScode doesn't recgonize python, and I am not sure what I should do. There was a similar question posted here, but it wasn't resolved.

Here is a picture of the error below.

I have saved this this python file as .py under my desktop. I have followed the same steps as youtubers and I stil get this error.

Please be detailed in simple in explanation since I am a novice at coding, and not the most tech savvy. Thank you so much for your help

CodePudding user response:

  1. Please ensure that you have installed python extension.
  2. You can use shortcuts "Ctrl Shift P" and type "Python: Select interpreter" to choose the correct python interpreter.

CodePudding user response:

  1. Go to File->Prefrences->Settings
  2. generates a "User Settings" file
  3. input the Python installation directory

image

  • Related