官术网_书友最值得收藏!

Setting environment variables in Windows

Here, if python.exe is not provided to the path variable, then the system does not recognize python as a command, as shown in the following screenshot:

The Windows command prompt does not recognize python as shown in the previous screenshot. Once Python has been updated in the path variables or system variables, the windows command line recognizes the python command and executes as shown here: 

During installation, the installer provides an option to set system variables, which we have seen in our installation steps. But in case you missed that out, you need not worry. You can manually set the system variables. Simply follow these steps:

  1. Just right-click on My Computer (older version of Windows PC) or Computer (win 7 onwards) and select Properties. Once you have selected the properties, you will get the following screenshot where you need to select Advanced system settings:
  1. After you have clicked on Advanced system settings, you will get System Properties. Click on the Environment Variables button. 
  2. After completing Step 2, a window will pop up. From the System variables pane, select Path and click on the Edit button.
  3. Your Python installation will look something like the following screenshot, where you need to right-click on the address bar and select the Copy address as text option:
  1. Add the Python installation folder path to the Path variable.
  2. Click on OK and then again on OK to close all the windows. Our system variable is set:
主站蜘蛛池模板: 和平区| 普兰店市| 会同县| 淳安县| 福清市| 清徐县| 沙坪坝区| 犍为县| 克东县| 尉犁县| 伊川县| 西盟| 珲春市| 金川县| 南京市| 金堂县| 玉环县| 广饶县| 德江县| 延津县| 东乡县| 仪征市| 衡阳县| 巩留县| 彰化县| 临汾市| 乳山市| 华安县| 上饶市| 宁晋县| 平利县| 阿拉尔市| 米泉市| 阳山县| 乌鲁木齐县| 齐齐哈尔市| 兰州市| 潜江市| 龙泉市| 甘肃省| 景德镇市|