- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 257字
- 2021-07-09 20:40:20
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:
- 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:

- After you have clicked on Advanced system settings, you will get System Properties. Click on the Environment Variables button.
- After completing Step 2, a window will pop up. From the System variables pane, select Path and click on the Edit button.
- 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:

- Add the Python installation folder path to the Path variable.
- Click on OK and then again on OK to close all the windows. Our system variable is set:

推薦閱讀
- HTML5+CSS3王者歸來
- Advanced Machine Learning with Python
- What's New in TensorFlow 2.0
- Learning ArcGIS Pro 2
- Ext JS Data-driven Application Design
- 開源項(xiàng)目成功之道
- C#面向?qū)ο蟪绦蛟O(shè)計(jì)(第2版)
- Learning Unreal Engine Game Development
- Python機(jī)器學(xué)習(xí)開發(fā)實(shí)戰(zhàn)
- 實(shí)驗(yàn)編程:PsychoPy從入門到精通
- Node.js實(shí)戰(zhàn):分布式系統(tǒng)中的后端服務(wù)開發(fā)
- React.js實(shí)戰(zhàn)
- 樹莓派開發(fā)從零開始學(xué):超好玩的智能小硬件制作書
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)
- Python實(shí)戰(zhàn)指南:手把手教你掌握300個(gè)精彩案例