How to install pip in python2

(*-*)浩
Release: 2019-11-01 15:29:27
Original
5948 people have browsed it

pip is used to conveniently manage third-party packages of Python. Since I only had a taste of Python before, I used python(x,y), but this does not mean that you can find any package you want to use. , so I uninstalled python(x,y) and reinstalled Python2.7.5, ready to try using pip to download the desired package.

How to install pip in python2

After the python installation is completed, you can use the "python" command under cmd, cd all the way to the root directory of easy_install.exe. (Recommended learning: Python video tutorial)

It needs to be emphasized here that the default path of cmd starts from "C:\Users\ASUS>". If you want to go to D Drive E and drive F are convenient. Taking drive E as an example, just enter "E:" directly. But how to move to drive C?

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

How to install pip in python2

Cd all the way to the location of easy_install.exe and execute the command "easy_install.exe pip":

How to install pip in python2

Then a series of pip-related files will appear in the Scripts folder, including pip. exe.

How to install pip in python2

Also add the path of pip.exe to the environment variable PATH.

Enter "pip" under cmd. If the "pip" command can be recognized, it means that the pip installation is successful.

That is to say, the following screen will appear:

How to install pip in python2

The above is the detailed content of How to install pip in python2. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template