How to configure python environment variables: first open the properties and find "Advanced System Settings"; then click "Environment Variables" and find Path; then add a semicolon at the end of the string and enter the path to install python ;Finally click OK.
The operating environment of this tutorial: Windows 7 system, python version 3.9, DELL G3 computer.
How to configure python environment variables:
1. Computer--right-click--Properties
2 . Find "Advanced System Settings" in the left column
3. Click "Environment Variables"
4. In the system variables, find Path and double-click
5. At the end of the string, add a semicolon ;
and then Enter the path where you installed python, as shown in the picture
6. Click OK all the way, OK until the setting is completed
Open the command line and enter python, The configuration is successful when the following prompt appears
##Related free learning recommendations:python video tutorial
The above is the detailed content of How to configure python environment variables. For more information, please follow other related articles on the PHP Chinese website!