Install the ultimate graphic tutorial of Python and pip in windows,
This article hopes to provide a silly tutorial to allow readers to successfully install Python and pip.
Step 1: Install Python first. The latest version 3.4.2 is selected by the blogger. The Python installation in windows is generally through the software installation package instead of the command line. Therefore, we must 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. After the installation is complete, open the console and enter "Python" to see the following results:
The original cause is that the Python. EXE file is in the Python directory and we have not set any environment variables. Therefore, we need to manually add environment variables: right-click my computer-> properties-> advanced system settings-> environment variables-> PATH-> Add our Python installation PATH to the end-> click OK. The following figure is used:
In this process, you must note that when adding a PATH, you must add a semicolon at the end. Now, input "Python" in the browser again to directly access the console:
Step 2: Install pip. We also need to download on the Python official website, is: https://pypi.python.org/pypi/pip#downloads:
After the download is complete, decompress the package to a folder, use the CMD console to enter the decompressed directory, and enter:
python setup.py install
After the installation, input pip directly in the command line. It also shows that 'pip 'is neither an internal command nor a running program. Because we have not added environment variables.
According to the method described earlier to add environment variables, we add the following at the end of PATH:
C:\Python34\Scripts;
Now we have installed pip completely:
Step 3: install some Python packages, such as Tornado web framework:
Here, the entire installation tutorial is complete, Enjoy yourself ~