4

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

8
  • see this can help you stackoverflow.com/questions/13596505/… Commented Jun 2, 2020 at 18:14
  • try python3 -V Commented Jun 2, 2020 at 18:15
  • 2
    or try just py -v Commented Jun 2, 2020 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? Commented Jun 2, 2020 at 18:17
  • 1
    What's the output of where python? Commented Jun 2, 2020 at 18:20

1 Answer 1

8

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.