Why does python --version return nothing in the command prompt

Viewed 3784

I recently installed Python 3.7.9 for a class I am taking. I am able to run python code both through the windows command prompt and Visual Studio 2019. I was making sure everything was set up correctly. However, when i run the command python --version, it just enters a blank line. IS there something im supposed to do after installing python to set up my Command Prompt?

1 Answers

VS code pulls from the specified file path for each python version, so it will work regardless of if python has been added to your PATH.

Does it give you an error when you just type python into your CMD (not inside vs code)?

If it does then you need to add python to your PATH, details for this can be found here:How to add a folder to `Path` environment variable in Windows 10 (with screenshots)

and the folder paths you need are:

%USERPROFILE%\AppData\Local\Programs\Python\Python37\Scripts\
%USERPROFILE%\AppData\Local\Programs\Python\Python37\
Related