How to configure Python environment variables?
To set up the Python environment variable, you can follow these steps:
- Open the “Control Panel” on the computer.
- Choose “System and Security” in the control panel.
- Select “System” under the “System and Security” option.
- Select “Advanced System Settings” on the left side of the system settings page.
- Select the “Advanced” tab in the popped-up “System Properties” dialog box.
- Click on the “Environment Variables” button in the “Advanced” tab.
- In the “Environment Variables” dialog box, locate the “Path” variable under “System Variables” and click on the “Edit” button.
- Click on the “New” button in the “Edit Environment Variables” dialog box.
- Python version 3.7
- Click the “OK” button in the “Environment Variables” dialog box.
- Click the “OK” button to close the “System Properties” dialog box and “Control Panel”.
Now that you have successfully set up the Python environment variable, you can use the python command to run the Python interpreter in the command prompt or terminal.