V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tooweakchen
V2EX  ›  Django

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

  •  
  •   tooweakchen · 2015-05-14 23:41:50 +08:00 · 4607 次点击
    这是一个创建于 3269 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

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

    5 条回复    2015-05-15 09:45:07 +08:00
    gaotongfei
        1
    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
        2
    gaotongfei  
       2015-05-15 00:46:09 +08:00
    看报错应该是没用virtualenv. 试试在命令前加sudo
    Reset
        3
    Reset  
       2015-05-15 08:22:21 +08:00 via iPhone
    显示的信息都已经提示了原因
    学会看提示信息 学会提问 才能有提升
    knktc
        4
    knktc  
       2015-05-15 09:15:26 +08:00   ❤️ 1
    Permission denied, 权限问题呗
    bravecarrot
        5
    bravecarrot  
       2015-05-15 09:45:07 +08:00 via iPad   ❤️ 1
    权限问题,sudo执行命令。
    再报错地话,lz继续贴
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3698 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:23 · PVG 18:23 · LAX 03:23 · JFK 06:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.