Python installation and environment variable configuration tutorial for fools (September 2023)

A python tutorial written for my silly guy

——Yanqiu

Python 's environment variables can be automatically configured in the installation package, so it is much simpler than Java .

Python installation and environment variable configuration tutorial for fools (September 2023)

About this column

Regarding Pycharmthe installation, deployment and basic use, please check this column article Fool-proof installation and deployment of Python interpreter and Pycharm

A Python download

  1. Open the official website, official website download address: https://www.python.org/
  2. Click Downloadsand select the corresponding system. Here we chooseWindows
    Insert image description here
  3. Just select the latest version (the specific system type can win+ibe viewed by clicking System Information)

Insert image description here
Insert image description here

2. Python installation

  1. Open the installation package and the installation interface will pop up. You can click Install Now or Customize Installation.

  2. Check the box below: Add Python 3.10 to PATHto automatically add system environment variables.

  3. Select Customize installationcustom download
    Insert image description here

  4. Go directly Nextto the next step
    Insert image description here

  5. Select download location. Note that this folder cannot be moved or renamed after downloading, otherwise the environment variables need to be reset. It is recommended to create a folder specifically to store similar files.Insert image description here

  6. Click Disable path length limitto turn off path length restrictions (recommended)

  7. Click to Installcomplete the downloadClose
    Insert image description here
    Insert image description here

3. Manually configure environment variables

If you checked it according to the steps, Add Python 3.10 to PATHyou can jump directly to check the environment variables. If you forget to check it, it is recommended to uninstall and reinstall. This part is dedicated to the ironheads like me.

  1. win+iOpen system settings
    Insert image description here

  2. Click 系统信息,高级系统设置
    Insert image description here
    Insert image description here

  3. Click环境变量
    Insert image description here

  4. Select Path, click编辑(E)...
    Insert image description here

  5. Create a new variable, refer to your Python installation path+ \Scripts\, and check
    Insert image description here

Four test environment variables

  1. win+RQuickly open the run box and enter cmdEnter
    Insert image description here
  2. Enter pyhon, as shown in the picture, it is successful
    Insert image description here

Guess you like

Origin blog.csdn.net/yanqiu12138/article/details/132834752