Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied when trying to install easy_install on OSX

I'm trying to install easy_install and, well... see for yourself:


sh setuptools-0.6c11-py2.6.egg

Processing setuptools-0.6c11-py2.6.egg

Copying setuptools-0.6c11-py2.6.egg to /Library/Python/2.6/site-packages

Adding setuptools 0.6c11 to easy-install.pth file

Installing easy_install script to /usr/local/bin

error: /usr/local/bin/easy_install: Permission denied


How do I give my computer permission to do this? I tried telling it in a friendly voice, "computer, I hereby grant you permission to install easy_install" but that didn't work.

like image 567
mrdavidjcole Avatar asked Dec 11 '10 13:12

mrdavidjcole


2 Answers

Use sudo.

sudo sh setuptools-0.6c11-py2.6.egg

I would also investigate MacPorts.

Edit (5 years later): I now suggest Homebrew instead of MacPorts.

like image 152
robert Avatar answered Nov 10 '22 09:11

robert


sudo sh setuptools-0.6c11-py2.6.egg
like image 43
Nerian Avatar answered Nov 10 '22 07:11

Nerian