[英]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.我正在尝试为 django 安装 mptt。 The problem is that it seems I can't create new files in /usr/local/.../python2.7.
问题是我似乎无法在 /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.您需要具有 root 访问权限才能安装软件包。 Try using the following:
尝试使用以下方法:
sudo python setup.py install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.