django1.8 的利用 pip install bootstrap-admin 安装 bootstrap,但是出现以下问题,求解决?

2015-05-14 23:41:50 +08:00
 tooweakchen

creating /usr/local/lib/python2.7/dist-packages/bootstrap_admin

error: could not create '/usr/local/lib/python2.7/dist-packages/bootstrap_admin': Permission denied


Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-QOSgzT-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ygqRnL-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-QOSgzT-build
Storing debug log for failure in /tmp/tmpQuU5os

是不是版本的问题啊???

4614 次点击
所在节点    Django
5 条回复
gaotongfei
2015-05-15 00:42:46 +08:00
1. 是不是网络问题, 挂vpn或者换源试试
2. 有没有用virtualenv? 用的话别忘记先`source venv/bin/activate`, 然后再'pip install xx'
3. 没用virtualenv的话, 用`sudo pip install xx` (推荐使用virtualenv)
gaotongfei
2015-05-15 00:46:09 +08:00
看报错应该是没用virtualenv. 试试在命令前加sudo
Reset
2015-05-15 08:22:21 +08:00
显示的信息都已经提示了原因
学会看提示信息 学会提问 才能有提升
knktc
2015-05-15 09:15:26 +08:00
Permission denied, 权限问题呗
bravecarrot
2015-05-15 09:45:07 +08:00
权限问题,sudo执行命令。
再报错地话,lz继续贴

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/191180

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX