In the sophomore years of contact with Python for some time, and recently began to play the language. Overall, the individual likes Python's language style, but the language is not very friendly to Windows, because if it is a beginner installed in the Windows environment, it is torture people, will encounter various egg pain situation. This article wants to provide a fool-style tutorial that will enable readers to successfully install Python and PIP.
The first step is to install Python first, and the version selected by blogger is the latest version of 3.4.2. The Python installation under Windows is typically installed through the software installation package instead of the command line, so we'll 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~
If you need to reprint this article, please add the reprint address: http://www.cnblogs.com/yuanzm/p/4089856.html, thank you ~
The ultimate tutorial on installing Python and Pip below windows