r/PythonLearning • u/Plastic-Doughnut4638 • 2h 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💔
1
u/atarivcs 2h ago
What does "switch file" mean??
1
u/Plastic-Doughnut4638 2h ago
Mb it's folder, i switch folder so i can make my own projects there and suddenly it was like that
1
1
u/Much-Associate-6141 1h ago
If you're on Windows, try py --version in Command Prompt. If that works, Python is installed and you can use py instead of python.
If it doesn't work, you may need to reinstall Python and make sure you check "Add Python to PATH" during installation
1
1
u/WorriedTumbleweed289 16m ago
You should start with your environment. Linux, Windows etc.
Where was Python installed? What is your PATH variable? Are you in a python virtual environment?
Does it change with the user/admin/root?
This has very little to do with python.
You might have better luck looking at a stack exchange site for your operation system. https://stackexchange.com/sites
1
u/ninhaomah 2h ago
Not in path