How to Fix ”Python Was Not Found” Error on Windows?
- Check the Python Environment Variables:
Firstly, check if Python is properly installed on your computer. Then, add the Python path to your system environment variables.
- Go to Control Panel -> System -> Advanced System Settings -> Environment Variables.
- Under the System Variables box, scroll down and find “Path”.
- Click on “Edit”, and then on “New” to add the Python path.
- Enter the path to your Python installation folder (for example, C:\Python38) and click OK.
- Reinstall Python:
If the Python installation is corrupted or incomplete, you might need to reinstall Python.
- Uninstall Python and restart your computer.
- Download the latest version of Python from the official website.
- Install Python again and make sure to select “Add Python to PATH” option during the installation process.
- Update Your System:
An outdated system can also cause issues with running Python. Updating your system can help fix the issue.
- Go to “Settings” -> “Update & Security” -> “Check for updates”.
- If there are any updates available, install them and restart your computer.
- Run Command Prompt as Administrator:
You may need administrative permission to run Python successfully.
- Search for “Command Prompt” in the Start menu.
- Right-click it and select “Run as administrator”.
- In the admin command prompt, try running the Python command again.
Hopefully, these solution methods will fix the ”Python Was Not Found” Error on Windows for you.