Unable to install django on ubuntu 12.04

31 views
Skip to first unread message

nitin katyal

unread,
Jan 8, 2015, 3:06:57 PM1/8/15
to django...@googlegroups.com
As per the Django installation guide, I have installed pip using "sudo apt-get install python-pip". Pip got installed and upgraded successfully, but when I was installing Django using  "pip install django==1.7", the following error appeared:

"error: could not create '/usr/local/lib/python2.7/dist-packages/django': Permission denied"

I am a novice, please help me install django.

Thanks in advance!

Alex Mandel

unread,
Jan 8, 2015, 4:22:24 PM1/8/15
to django...@googlegroups.com
That command attempts to install Django for the systemwide python. On
ubuntu this would require sudo(root) priveleges.

sudo pip install django

While that will work, I suspect most people would recommend you use
python virtualenv in order to create python sandboxes. The biggest
benefit is that you can have multiple django versions, each in their own
sandbox (great for testing and upgrades).

Here's a tutorial
http://www.jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/

Enjoy,
Alex

sum abiut

unread,
Jan 8, 2015, 5:27:18 PM1/8/15
to django...@googlegroups.com
Its permission issue. you need to login  as root and then try install again.

enjoy,
Sum


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54AEF4F2.9090509%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.




Reply all
Reply to author
Forward
0 new messages