r/learnpython • • Jun 12 '24

Python works, "py" doesn't

I'm running a windows 10 machine with Python 3.12 installed. For some reason the 'python' command works fine, but 'py' gets me "'py' is not recognized as an internal or external command, operable program or batch file."

I have python installed here: C:\Users[username]\AppData\Local\Programs\Python\Python312

And the python launcher installed here: C:\Windows\py.exe

I've added both locations to my PATH, restarted the machine, but still doesn't work.

Any help is appreciated.

0 Upvotes

35 comments sorted by

View all comments

0

u/[deleted] Jun 12 '24

[deleted]

-3

u/cloudiimofo Jun 12 '24

Whats really scary is that I've already been a python developer for years, just got a new machine and ran into this right away.

0

u/[deleted] Jun 12 '24

[deleted]

3

u/cloudiimofo Jun 12 '24

You couldn't be more right, had that talk an hour ago. His machine is next!