2

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

AMC
  • 2,535
  • 7
  • 12
  • 34
Zoom
  • 29
  • 2
  • see this can help you https://stackoverflow.com/questions/13596505/python-not-working-in-command-prompt – aviboy2006 Jun 02 '20 at 18:14
  • try ```python3 -V``` – Pittsie Jun 02 '20 at 18:15
  • 2
    or try just ```py -v``` – Ankit Beniwal Jun 02 '20 at 18:16
  • Your `python` command doesn't look like it's pointing to anything. If it was right it would have initialized the interpreter and given you a `>>>` prompt. Perhaps you are thinking `py`? – r.ook Jun 02 '20 at 18:17
  • 1
    What's the output of `where python`? – ywbaek Jun 02 '20 at 18:20
  • Also, what is the output of `echo %PATH%`? – Anwarvic Jun 02 '20 at 18:20
  • I also have windows and got the same behaviour you are describing. When using `py` instead of `python`, everything works – Tomerikoo Jun 02 '20 at 18:22
  • Please do not share information as images unless absolutely necessary. See: https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors, https://idownvotedbecau.se/imageofcode, https://idownvotedbecau.se/imageofanexception/. – AMC Jun 03 '20 at 01:37

1 Answers1

3

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.

r.ook
  • 12,848
  • 2
  • 19
  • 35