~/Django-1.4.2/django-mptt-0.5.5$ python ./setup.py install
running install
running build
running build_py
running install_lib
creating /usr/local/lib/python2.7/dist-packages/mptt
error: could not create '/usr/local/lib/python2.7/dist-packages/mptt': Permission denied

I'm trying to install mptt for django. The problem is that it seems I can't create new files in /usr/local/.../python2.7. the reason is: I'm not the owner.

How do I change that? (it's my computer).
Or,is there a better way for installing it?

有帮助吗?

解决方案

You need to have root access to install a package. Try using the following:

sudo python setup.py install
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top