Install Python
1. Download python for the system version
First to the URL (http://www.python.org/getit/) download the Python version for your Windows, 32-bit win7 download python 3.3.2 Windows x86 MSI installer, 64-bit win7 download python 3.3.2 Windows x86-64 MSI installer.
(Note: Right-clicking on "Computer" and "Properties" will display system information, for example, show my Win7 as 32-bit
)
2. Install Python
Double-click the downloaded installer, you can start the installation, no special requirements, you can directly click on "Next" to install, I will be the Python installation directory to e-drive, you can also modify the corresponding drive letter.
Complete the installation
3. Modifying environment variables
By modifying the environment variables, adding the Python installation path to the environment variable, you can then invoke the Python interpreter on any path.
Right-click on "Computer"--"Properties", click "Advanced System Settings"
Click on "Environment variables"
Double-click the Path variable under System variables:
The "Variable value" of path is separated by semicolons, adding your "Python installation path" to the end of the path "variable value", which I added at the end; E:\Python33 ", note there is a semicolon (if you are installing the Python33 folder to the C drive, add" at the end; C:\Python33 ", note there is a semicolon)
Click "OK" to set the "environment variable" to take effect
Go to the command line (the shortcut is the Super+r,super key is the key with the Windows logo next to the ALT key), enter "cmd" to enter the command line
Enter Python to launch the Python interpreter
Python's first statement, "Hello world!", enters print ("Hello world!"), and you can see the result of the interpreter's execution.
4.Python self-brought Python GUI interpreter idle
Enter "IDLE" in the "Search programs and Files" column
Click to start Idle
Install PIP
Pip is one of the Python module installers, and one of the great things about Python is that there are many ready-made modules that can improve programming efficiency by using off-the-shelf functional modules developed by others, and can make the program look more concise.
Install setuptools before you install PIP.
Install Setuptools.
Download ez_setup.py, download address (https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py), download completed, will Ez_ setup.py placed in your Python installation directory (for example, I put it in the E:\Python33 directory), double-click the ez_setup.py file, the script can be run.
The script will automatically download and install the Setuptools for your system, and after installation you will find a scripts subfolder under your Python installation directory with the Easy_install.exe installed.
Setting environment variables
Add the installation path of the Easy_install.exe to the environment variable (refer to the previous article for detailed steps)
Add the installation path of Easy_install.exe after "variable value" of "path", adding "; E:\Python33\Scripts ", note the semicolon.
After clicking "OK", the environment variable takes effect.
Start the command line and install PIP.
Formally install PIP
Command line input easy_install pip
After the installation is complete, you will return to the scripts subdirectory, and more Pip.exe, later you can install the Python module via PIP.
Installing Ipython
Ipython has a more powerful feature than native Python interpreter, which can invoke some shell commands under Linux, and comes with powerful debugging capabilities, with the tab-completion command. Now we have installed the PIP program, install
Ipython.
Command line, enter the command pip install Ipythonto install. Wait a few minutes for the installation to complete.
Command Line Input command Ipython3, you can start Ipython.
Finally recommend a very powerful cross-platform editor "sublime text", download address (HTTP://WWW.SUBLIMETEXT.COM/2), support for Python editing.
The above is the whole content of this article, I hope that everyone's study has helped.