1

I installed python 3.8 from the Windows store. Typing "python" works. Why does py -3 not work for me? I re-did all the steps in the main tutorial I was following.

It says "py" is not found as any of a bunch of things it could be.

3
  • 1
    You need to install the py.exe launcher. See docs.python.org/3/using/windows.html Commented May 9, 2020 at 22:27
  • Thanks @Booboo. The tutorials never mentioned the launcher. Commented May 9, 2020 at 23:01
  • I tried that and it worked. Yay!! For anyone still confused, the Python installer has an option to install the "launcher". Leave it checked, because that's the "py" in question. Commented May 10, 2020 at 0:55

1 Answer 1

2

Since there is no answer to this question (It is in the comments)

Refer to this page for the source of this information

Firstly I am installing Python 2.X and selecting:

  • Install for all users
  • Install to default folder
  • Press next to following screen (install default customizations). This won’t add the python.exe of Python 2.X to path

Next to install Python 3.X:

  • Make sure to click “Install launcher for all users (recommended)”
  • Also check “Add Python 3.6to PATH” (to add the Python 3.X executable to path)
  • Then just click “Install Now” (this will put Python 3.X to c:)

To use / test using :

py -3 
py -2

This should launch python 3 and 2 respectively


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.