On 01/08/2015 12:06 PM, nitin katyal wrote: > 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! >
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 -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@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.