Farnaz Soheili
Farnaz Soheili

Reputation: 41

I accidentally uninstalled pip form python2.7, how should I install it back?

I uninstalled pip by mistake and my question is how I can install it back? I am using windows. C:>Python-2.7\python.exe -m pip uninstall pip openpyxl

I wanted to uninstall openpyxl but I forgot to delete pip

Upvotes: 0

Views: 7913

Answers (1)

senaps
senaps

Reputation: 1525

Installing pip is a simple 2-step operation.

first, you have to get the latest version of pip installer file.

second, You have to run a python get-pip.py on the file you have downloaded.

the file you download in the first step is named get-pip.py and, when ran using python is going to download and install pip on your os.

and you can always read the documentations.

Upvotes: 6

Related Questions