Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get PIP for python [duplicate]

Tags:

python

pip

I am trying to install pip.py. Whenever I search for the installer, it opens to a new tab with codes in it, with nothing that I can download. What am I meant to do, am I meant to copy-paste the code into the Python interpreter? How can I get it to work for the Windows 7 32bit version?

like image 902
user1998735 Avatar asked Apr 21 '14 06:04

user1998735


People also ask

How do I install pip for Python?

Run python get-pip.py . 2 This will install or upgrade pip. Additionally, it will install setuptools and wheel if they're not installed already. Be cautious if you're using a Python install that's managed by your operating system or another package manager.

Does Python 2.6 have pip?

pip works with CPython versions 2.6, 2.7, 3.1, 3.2, 3.3, 3.4 and also pypy.

How do I force reinstall pip?

To force re-download use the --no-cache-dir flag. Note that this command also reinstalls all dependencies. Add --no-deps to avoid that, as suggested in Finn's answer below.


1 Answers

Installing with source

Go to this link: https://bootstrap.pypa.io/get-pip.py

Copy the contents of this file onto another new file and save it as get-pip.py (when it asks you what you want to do with the file, click Save, then copy the contents of the file onto another new file), and open your Windows Command Prompt as an admin and go to the file path and then enter (you need Internet for this) the following command,

python get-pip.py install

For help on installing with different operating systems

Refer to this link: http://www.pip-installer.org/en/latest/installing.html

Installing with an exe file

Click here to get the file, and install it and you need to set a path to the pip directory, you will find a source folder in the C drive and you can find the pip file, then set the folder path.

like image 164
Mulagala Avatar answered Sep 24 '22 18:09

Mulagala