I spent most of the day yesterday searching for a clear answer for installing pip. I can't find a good solution.
Can somebody help me install it?
|
|
All you need to do is
|
|||||||||||||||||||||
|
|
You can install it through Homebrew on OS X. Homebrew is something of a package manager for OS X, more details here: http://mxcl.github.io/homebrew/ If you have Homebrew installed,
Note that this will also install an updated python, default is currently 2.7.5 while brew's python is 2.7.6. |
|||||||||||||||||||||
|
|
The simplest solution is to follow the installation instruction from pip's home site. Basically, this consists in:
The main advantage of that solution is that it install pip for the python version that has been used to run Most solutions that use a package manager (homebrew or macport) on OS X create a redundant installation of python in the environment of the package manager which can create inconsistencies in your system since, depending on what you are doing, you may call one installation of python instead of another. |
|||||
|
|
To install or upgrade pip, download get-pip.py from http://www.pip-installer.org/en/latest/installing.html Then run the following:
For example:
|
|||||
|
Then update your PATH to include py27-pip bin directory (you can add this in ~/.bash_profile PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH pip will be available in new terminal window. |
|||
|
|
|
You should install Brew first:
Then brew install Python
Then |
|||||||||||||
|
|
Download this file: get-pip.py Then simply type
Make sure you are on the same directory as get-pip.py or you supply the correct path for that file. For details, you can visit: http://pip.readthedocs.org/en/latest/installing.html or, http://thegauraw.tumblr.com/post/47601704154/how-to-install-pip-in-both-windows-ubuntu-easiest-way |
|||
|
|