Before starting Python programming, you need to install the Python environment first. The Python installation package can be downloaded from Python's official website. The official website address is. If you want to skip the introduction about Python and directly download the installation package, you can directly visit and download the installation package.
To install Python under Windows, please follow the steps below:
Open a web browser and visit.
Choose the version of the installation package you need. (Currently, version 2.7 or 3.5 of Python is generally recommended)
Download the corresponding Windows Installer file (if you install Python on the AMD platform, you need to select the corresponding installation file).
You can place the Windows Installer file anywhere on the computer, such as D:\Software\python-2.7.5.msi.
Double-click the Python installation package to open the Python installation wizard. If you are not familiar with the installation process here or have no requirements for the installation path, you can keep clicking Next to complete the default installation. You can also customize the installation according to your own needs. The default installation path is in the Python version number folder corresponding to the C drive. If you customize it, you can install it in the directory you specify as needed.
After the installation is complete, you need to add the Python running program to the system environment variables. Right-click "Computer"-->"Properties"-->"Advanced System Settings"-->"Environment Variables"-->"System Variables"-->"path"-->"Edit" Add the following content at the end: ";D:\Python27\"; (I custom-installed Python2.7 under the D drive, so this is the path added here, just add it according to the path of your Python.exe file).
Recommendation:
In order to facilitate future management, the program installation package and program installation directory should be planned in advance.
After the installation is complete, we can find the Python program in Windows, in "Start"-->"All Programs"-->"python2.7" You can see that there is an "IDLE (Python GUI)" IDE integrated development tool that comes with Python.
Through this Python IDE tool, we can interactively conduct simple Python exercises. Of course, we can also open the command prompt window through the "win+R" keys, enter the python command and press Enter, or open the Python interactive window.
At this point, the installation of the Python environment under Windows is completed. Of course, in order to facilitate development, we definitely need to use other IDE integrated development environments to improve development efficiency. For example, PyCharm, sublime text, notepad++, eclipse+pydev, etc., there are a lot of them available online on Baidu.
The above is the detailed content of Python-Windows detailed installation tutorial under Windows system. For more information, please follow other related articles on the PHP Chinese website!