Three-step installation of PIP in Windows Python

Source: Internet
Author: User

Pip is used to conveniently manage Python's third-party package, since playing Python is just a scratch, using Python (x, y), but this does not mean that you want to use what package can be found from the inside, so I put Python (x, y) unloaded, Then re-installed a Python2.7.13, ready to try to use PIP to download the desired package.

But PIP also has a problem, if the computer can not be connected to the Internet?

Then consider this question, first of all, here to record how I installed PIP. This article refer to Baidu Experience "How to install Python package tool pip under Win7", there are many PIP installation tutorials on the Internet, but feel this write is the most concise and understandable, only need three steps to go OK. Below I will put down my installation steps, but also in accordance with the "three-step walk", but I would like to do some of the Baidu experience to complement and improve, the way I encountered problems in the middle of the solution is also sent up.

Step1:

(1) Install python2.7.13, here I choose to install in the C packing directory.

(2) After installation, the C drive will generate a folder called "Python27".

(3) Open python27, you will find a folder called scripts in the directory, click Open Scripts, you will find a series of easy_install related files.

(4) Open python27, you will find a file called Python.exe under the file, add the path of the file to the environment variable path (added under the System Variable column). If you do not do this, the cmd command is not recognized by the "Python" directive. If you can successfully identify the directive, the following conditions will appear:

A. Input "Python" to cmd, not successfully recognized: console displays "not internal or external command"

B. To cmd input "python", can be successfully identified, then shown as follows:

Step2:

(1) Now CMD can use the "python" command, a CD to the root directory of Easy_install.exe.

It needs to be emphasized here that the CMD default path is from "c:\users\lyf>", if you want to go to the D-disk E-disk F-disk convenient, to e-disk for example, direct input "E:" Can be , but how to go to C drive it?

One of the instructions used here is "cd\", as follows:

(2) The CD index to the place where the Easy_install.exe is located, execute the instruction "Easy_install.exe pip":

The Scripts folder will appear with a series of PIP-related files, including Pip.exe.

Step3:

(1) As with the previous method of handling Python.exe, add the Pip.exe path (my C:\Python27\Scripts\pip.exe;) to the environment variable path.

(2) Re-open the control window (r+win), cmd input "Pip", if you can identify the "PIP" directive, the PIP installation was successful.

In other words, the following screen will appear:

That's it.

Three-step installation of PIP in Windows Python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.