https://www.python.org/downloads/
Choose the latest Python3.10.5, download 64 Bit version
1. double-click Python-3.10.5-amd64.exe
2. choice Customize installation Custom installation path , Remember to tick the two options below
3. The appearance of this page indicates that the installation was successful
1.Win+R Open console , Input Python
At this point, there is an episode :cmd Run under python eject windows The app store
The reason for this is : Microsoft's environment variables take precedence over Python Environment variables of
resolvent :1. Modify the environment variable priority ( More trouble ) 2.win10 Menu search 【 Manage application execution aliases 】 Close the following three buttons 【 Application installer 】( This method is effective , Strongly recommend !)
If the following figure appears , Indicates that the installation failed
If the following figure appears , Indicates successful installation
here , be in Python In an interactive environment , Enter any Python Enter the code to get the corresponding execution result . If you want to quit , Input exit()+ You can enter. .
2. To configure Python environment variable
Windows Operating system according to Path The corresponding path set by the environment variable of python.exe, If not found , You're going to report a mistake . Forget to check... During installation Add Python 3.10.5 to PATH, At this time, it is necessary to manually python.exe The path where is added to Path in .
PS: The first 1 The installation failure in step is usually caused by not configuring the environment variables
Right click on my computer –> Select Properties –> Select advanced system settings –> Select the environment variable in the lower right corner
Environment variables mainly include user variables and system variables , The environment variables that need to be set are in these two variables
The user variable is that the downloaded program can be downloaded in cmd Use in command , Write the absolute path of the program to the user variable to use
thus ,Python It has been installed successfully !!
But further use Python, Development tools are essential .
1. Get into PyCharm Official website
https://www.jetbrains.com/pycharm/download/#section=windows
2. install Pycharm
Modify the path according to the actual situation
Check all
Installation is complete !
1. Activate with education email
2. New projects
thus ,Python The installation tutorial of is all introduced , Welcome to like collection ~~