The first step is to install Python first. The Python installation under Windows is typically installed through a software installation package instead of a command line, so first download the latest Python installation package on the Official Python homepage. Yes: https://www.python.org/downloads/
After the download is complete, click Next to OK. After the installation is complete, open the console, enter "Python", we can see the following effect:
The reason is simple because the Python.exe file is in the Python directory and we haven't set the environment variable yet. So we need to add the environment variables manually: Right-click My Computer, properties, tap Advanced system settings, click Environment variables, click Path, and then click OK with our Python installation path. It is indicated by a picture:
The problem to note in this process is that when you add a path path, you add a semicolon to the last side. Now that we have entered "Python" in the browser again, we can access the command directly from the console:
In the second step, we install PIP. We also need to download on the official website of Python: https://pypi.python.org/pypi/pip#downloads:
After the download is complete, unzip to a folder, use the CMD console to enter the Extract directory, enter:
Python setup. py Install
Once installed, we enter PIP directly at the command line, which also shows that ' Pip ' is not an internal command or a running program. Because we haven't added environment variables yet.
Following the method of adding environment variables as described earlier, we add the following path at the end:
C:\Python34\Scripts;
By now we are fully installed PIP:
The third step is to install some Python packages, such as the Tornado Web framework:
Here, the entire installation tutorial is complete, Enjoy yourself~
(Reprinted from Address: http://www.cnblogs.com/yuanzm/p/4089856.html)
Install Python and pip tutorials under windows