I'm coming from Snow Leopard at work to a Lion installation at home. I do NOT remember having to:
sudo easy_install pip
Is that required for Lion? I got errors until I did that, and pip ended up here:
[ some@computer ] ~ $ which pip
/usr/local/bin//pip
Does this mean that I'm going to have to sudo pip install other packages? e.g.:
sudo pip install virtualenv
sudo pip install virtualenvwrapper
I should also note that I'm running XCode 4.3 with the new separate install of the command line tools. So I do NOT have a /Developer path right now on my OS X Lion volume.
Never use sudo to install with pip. This is the same as running a virus as root. Either add your local folder to your PATH or use a virtualenv. Save this answer.
To use the get-pip script to install PIP on Mac: Open the Terminal app via the Launchpad. In the Terminal, type curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py and press Enter. Allow curl time to download the script onto your Mac. Once it's done, type python3 get-pip.py and press Enter.
Easy Install is a python module that is bundled with setuptools (easy_install) that allows you to download, compile, install, and manage Python packages automatically. It was included in setuptools in 2004 and is now deprecated.
Sometimes when you are installing packages, you might face the error: pip: command not found . This error could be due to the following reasons: Pip is not installed. Pip is installed, but it is not compatible with the current environment.
Yes. Generally you sudo to use pip. You could change a bunch of permissions and you may not have to but that could break all sorts of things. If you want to avoid re-typing your password try opening a
"sudo screen" session first. Then your shell will be logged in as root and will not prompt for the password. (Using sudo screen will allow you to run pip and other admin commands without typing sudo again)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With