How do I install pip on Windows?

+3 votes

pip is a replacement for easy_install. But should I install pip using easy_install on Windows? Is there a better way?

Sep 18, 2018 in Python by bug_seeker
• 15,510 points
288 views

2 answers to this question.

+1 vote
Best answer

pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org or if you are working in a Virtual Environment created by virtualenv. Just make sure to upgrade pip.

Step 1: Download the get.py file to your local drive.

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

This will download the get.py file to your local drive

Step 2: Run the 

python get-pip.py

All done! Good to go! 

answered Nov 2, 2018 by Priyaj
• 57,700 points

selected Nov 2, 2018 by Omkar
+1 vote

Official instructions

Per https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip:

Download get-pip.py, being careful to save it as a .py file rather than .txt. Then, run it from the command prompt:

python get-pip.py

This installs the pip package, which (in Windows) contains ...\Scripts\pip.exe that path must be in PATH environment variable to use pip from the command line (see the second part of 'Alternative Instructions' for adding it to your PATH,

installers for all Python versions, both 32 and 64 bit. You need to:

  1. Install setuptools

  2. Install pip

answered Sep 18, 2018 by Priyaj
• 57,700 points

Related Questions In Python

0 votes
1 answer

How do i install numpy on windows?

Python Package Index (PyPI) is a repository ...READ MORE

answered Jul 2, 2019 in Python by anonymous
118 views
0 votes
1 answer

How do I install pip on macOS or OS X?

All you have to do is: sudo easy_install ...READ MORE

answered Sep 11 in Python by Ahmad Awais
65 views
0 votes
1 answer
0 votes
1 answer

How do I convert a Python program to a runnable .exe Windows program?

Understand that every 'freezing' application for Python ...READ MORE

answered Oct 12, 2018 in Python by SDeb
• 13,250 points
243 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,461 views
0 votes
0 answers
+2 votes
1 answer

How to install pip in windows?

Step 1:  Open the following link and go to ...READ MORE

answered Nov 27, 2018 in Python by Priyaj
• 57,700 points
3,686 views
0 votes
1 answer

How do I sort a dictionary by value?

It is not possible to sort a ...READ MORE

answered Jul 30, 2018 in Python by Priyaj
• 57,700 points
129 views