Permission Denied on httplib2 install

Chris picture Chris · Aug 30, 2011 · Viewed 7.1k times · Source

I'm trying to install the httplib2 library for Python so I can use it to interact with the Twitter but I get the following error in the console when I try to install via 'python setup.py install'.

This is a new MBA and I am the only user (and Admin) so I shouldn't get denied so rudely!

error: could not create '/Library/Python/2.7/site-packages/httplib2': Permission denied

Thoughts?

Answer

Johnsyweb picture Johnsyweb · Aug 30, 2011

Use sudo to run setup.py as root:

% sudo python setup.py install