'python' not recognized

I am taking a class involving scripting languages. We are having to run scripts from the command prompt. In an attempt to make sure it is working. I get to the file where my python file is and I type " python practice_script.py" then I get ‘python’ is not recognized as an internal or external command,
*operable program or batch file. Additionally, this is the path of python on my computer: C:\Users\Dameon\AppData\Local\Programs\Python\Python312. This is also what I have in the path in the environment variable as well. Last thing, python works perfectly well in VS Code and in IDLE. Thanks for the help.

I fixed it. Nvm lol.

FYI. If anyone runs into this same issue. All I did was uninstall Python and reinstall it and made sure to click the box " Install as Path" at the bottom of the screen when you open the .exe file. I hope this helps.

1 Like

You could also have used the py command inplace of python.
This is often preferred on Windows because python is often not on the PATH.

It also makes it easy to access different versions of python if you ever install more the one version.

1 Like

You should have been able to re-run the installer without deleting and select repair/modify to check the box.

1 Like

I have used every possible way to fix it but it is still not recognized. Can you help me ?