在lunix中安装Django出错怎么解决,具体情况如下 5

lhy3323101@ubuntu:~$pipinstallDjango==1.8.6Downloading/unpackingDjango==1.8.6Download... lhy3323101@ubuntu:~$ pip install Django==1.8.6
Downloading/unpacking Django==1.8.6
Downloading Django-1.8.6-py2.py3-none-any.whl (6.2MB): 6.2MB downloaded
Installing collected packages: Django
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber
os.makedirs(destsubdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/django'

Storing debug log for failure in /home/lhy3323101/.pip/pip.log
展开
 我来答
和谐且精明丶爱侣e
2015-11-12 · TA获得超过360个赞
知道小有建树答主
回答量:170
采纳率:0%
帮助的人:215万
展开全部
权限问题。
加上sudo即可。
sudo pip install Django
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式