Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Version is not getting displayed in Command Prompt

Tags:

python

cmd

I downloaded the recent version of python(3.8.3) and selected the 'ADD TO PATH' prompt during setup and it was successfully completed(I checked by running the python.exe file in the source folder) but when i type 'python' or 'python --version' to check which version I am running in the command prompt, it doesn't show anything.

Some of the posts online suggested, to add the path manually again in system variables under environment variables, I did that too but it didn't work. I also tried uninstalling and reinstalling it several times but that didn't work too.

I am running Windows 10 Home 64-bit. Please Help. Thank you!

Command prompt

like image 696
Zoom Avatar asked Sep 19 '25 17:09

Zoom


1 Answers

On windows the python executable is py.exe, not python.exe (unless you are using a venv, which uses the latter to access). Use py command instead, i.e. py --version.

like image 198
r.ook Avatar answered Sep 22 '25 06:09

r.ook