I tried to install distribute or setuptools which has to be done prior to installing pip on the Raspberry Pi.

The command used was $ curl http://python-distribute.org/distribute_setup.py | python

However I got the following error. I can copy past the entire terminal script if requested.

[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-2082.pth'

Thanks for helping!

  • 1
    have you tried doing it with sudo at the front, or installing from a package (sudo apt-get install python-setuptools)? Jan 17, 2013 at 1:57
  • sudo apt-get worked! Jan 17, 2013 at 2:18
  • 1
    why don't you write that up as an answer an accept it. Jan 17, 2013 at 11:36
  • 3
    You should note that the curl line above downloads an unknown script from the Internet and then executes it sight unseen. You might trust python-distibute.org, but that's still a very bad thing to do :)
    – XTL
    Jan 22, 2013 at 8:37

1 Answer 1


Try putting


at the front.

Or try installing from a package like so:

sudo apt-get install python-setuptools

(adding this answer here instead of in the comments)

  • sudo curl ... | python is still insufficient, it makes the root user fetch a URL and then run python as the local user. curl ... | sudo python does what you would expect, but note the warning made by XTL: directly running scripts from remote sources without any form of verification is highly insecure.
    – Lekensteyn
    Jun 27, 2013 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.