OSError: [Errno 13] Permission denied: '/usr/share/pyshared/Django-1.4.1.egg-info'

Storing complete log in /home/lightning/.pip/pip.log
OS: Ubuntu 12.10 32 bit 2GB RAM

Trying to install this via tutorial returns this error.

sudo rm -rf /usr/lib/python2.7/dist-packages/django
sudo pip install Django==1.5
  • lightning@rigel5:~$ sudo rm -rf /usr/lib/python2.7/dist-package/django lightning@rigel5:~$ sudo pip install Django==1.5 Requirement already satisfied (use --upgrade to upgrade): Django==1.5 in /usr/local/lib/python2.7/dist-packages Cleaning up...
    – lightning
    Mar 17 '13 at 21:48
  • I guess this worked.. would like to confirm before admitting victory on this one
    – lightning
    Mar 17 '13 at 21:49
  • >>> import django >>> print(django.get_version()) 1.5 its official. declaring victory. Eric, you da man. ty
    – lightning
    Mar 17 '13 at 21:53
  • I think it's properly installed. Make a test to verify if it works. Mar 17 '13 at 21:53
  • yup it was safely imported into the interpreter and returned the correct version. Thanks again Eric. Now, to glue my hair back in ;)
    – lightning
    Mar 17 '13 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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