Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sudo required for easy_install pip in OS X Lion?

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.

like image 969
nthdegreeburns Avatar asked Feb 27 '12 04:02

nthdegreeburns


People also ask

Do I need sudo for pip install?

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.

How do I use pip in Terminal Mac?

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.

What is Easy_install pip?

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.

Why is pip not working Mac?

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.


1 Answers

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)

like image 137
Chyper64 Avatar answered Sep 28 '22 04:09

Chyper64