——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 Pycharm
the installation, deployment and basic use, please check this column article Fool-proof installation and deployment of Python interpreter and Pycharm
A Python download
- Open the official website, official website download address: https://www.python.org/
- Click
Downloads
and select the corresponding system. Here we chooseWindows
- Just select the latest version (the specific system type can
win+i
be viewed by clicking System Information)
2. Python installation
-
Open the installation package and the installation interface will pop up. You can click Install Now or Customize Installation.
-
Check the box below:
Add Python 3.10 to PATH
to automatically add system environment variables. -
Select
Customize installation
custom download
-
Go directly
Next
to the next step
-
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.
-
Click
Disable path length limit
to turn off path length restrictions (recommended) -
Click to
Install
complete the downloadClose
3. Manually configure environment variables
If you checked it according to the steps, Add Python 3.10 to PATH
you 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.
-
win+i
Open system settings
-
Click
系统信息
,高级系统设置
-
Click
环境变量
-
Select
Path
, click编辑(E)...
-
Create a new variable, refer to your Python installation path+
\Scripts\
, and check
Four test environment variables
win+R
Quickly open the run box and entercmd
Enter
- Enter
pyhon
, as shown in the picture, it is successful