Its permission issue. you need to login  as root and then try install again.

enjoy,
Sum

On Fri, Jan 9, 2015 at 8:21 AM, Alex Mandel <[email protected]>
wrote:

> 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 [email protected].
> To post to this group, send email to [email protected].
> 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.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAPCf-y5Z95oT1BKfC%2B_z_wmQfU9GPK5BVkGk%3D%3DacE7esZrZ0eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to