简体   繁体   中英

installing python mptt permission denied

~/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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM