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,350 points
75 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
• 56,520 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
• 56,520 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 in Python by anonymous
28 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,160 points
52 views
0 votes
1 answer

How do I determine if my python shell is executing in 32bit or 64bit mode on OS X?

UPDATED: One way is to look at sys.maxsize as ...READ MORE

answered Dec 11, 2018 in Python by ariaholic
• 7,340 points
84 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 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 215 views
+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
• 56,520 points
2,173 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
• 56,520 points
25 views