In this blog post, we will show you how to add Python to your Windows PATH. This is a necessary first step for easy executing Python scripts on your computer. By adding Python to your PATH, you will be able to run the Python interpreter from any command prompt.
First, you need to find out where your Python interpreter is located. To do this, open the command prompt and type
where python. This will print out the location of your Python interpreter.
Next, you need to add this location to your Windows PATH. To do this, open the
Control Panel and go to
System > Advanced system settings. On the Advanced tab, click on the
Environment Variables button.
In the window that opens, find the “PATH” variable under “System variables” and click on Edit. Add the location of your Python interpreter to the end of the PATH variable, separating it from the other entries with a semicolon (;).
In Windows 11, you only need to
Edit PATH then click
New to enter Python directory.
#In my case, I install Python 3 via Odoo installation, so I use it as my default python. C:\Program Files (x86)\Odoo 12.0\python