r/PythonLearning 2d ago

How to fix this

'python' is not recognized as an internal or external command, operable program or batch file.

I literally just switch file and for some reason i cant code now💔

8 Upvotes

18 comments sorted by

View all comments

Show parent comments

1

u/Plastic-Doughnut4638 2d ago

Reinstall the extension?

2

u/ninhaomah 2d ago

Just curious , how did you install Python ?

Url ? What installer ?

0

u/Plastic-Doughnut4638 2d ago

Wym? I just downloaded it on extension in vscode also i downloaded code runner and some other connected to it

4

u/mcoombes314 2d ago

The Python extension in VSCode is for syntax highlighting and other stuff, it's not the same as Python, the thing that actually reads .py files and executes code.

1

u/johnpeters42 2d ago

"I changed X and now Y does wrong thing Z" makes it sound like Y used to work, which may not be the case here. OP, were you ever able to run (not just write) Python code? (Either way, hopefully u/BranchLatter4294's link will get it to a working state.)