V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
pengjiayou
V2EX  ›  Python

python-pip 出錯,如何解決?

  •  
  •   pengjiayou ·
    pengjiayou · 2016-07-26 16:26:49 +08:00 · 6631 次点击
    这是一个创建于 2823 天前的主题,其中的信息可能已经有所发展或是发生改变。


    The directory '/home/pengjiayou/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    The directory '/home/pengjiayou/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

    我是保留 /home 從 14.04 升級到 16.04 的。

    嘗試過 chown -R 改 ~/.cache/pip 和 ~/.cache/pip/http 甚至 ~/.cache 的權限,仍然搞不定。

    求大神幫忙
    10 条回复    2016-08-01 14:23:51 +08:00
    yangtukun1412
        1
    yangtukun1412  
       2016-07-26 16:54:19 +08:00
    If executing pip with sudo, you may want sudo's -H flag.
    mrytsr
        2
    mrytsr  
       2016-07-26 16:57:09 +08:00 via Android
    sudo
    shimanooo
        3
    shimanooo  
       2016-07-26 17:01:03 +08:00
    非正面解决问题: pip install --user ...
    strwei
        4
    strwei  
       2016-07-26 17:18:17 +08:00
    你需要梯子吧
    xiashali
        5
    xiashali  
       2016-07-26 18:37:05 +08:00
    sudo -H
    cloverstd
        6
    cloverstd  
       2016-07-26 18:41:24 +08:00
    这个是 warning 吧,不是 error
    如果是 error 的日志,会是红色的字:D
    pengjiayou
        7
    pengjiayou  
    OP
       2016-07-26 19:24:49 +08:00
    @cloverstd 我記得以前並沒有這樣的提示,到底是爲神馬?
    pengjiayou
        8
    pengjiayou  
    OP
       2016-07-26 19:27:30 +08:00
    @shimanooo 這是新版本 pip 的問題麼?我記得以前就沒有這樣的提示。
    quxw
        9
    quxw  
       2016-07-27 09:37:13 +08:00
    这个是个 warning
    然后,你可以不用 cache
    然后,升级下 pip
    pengjiayou
        10
    pengjiayou  
    OP
       2016-08-01 14:23:51 +08:00
    @quxw 貌似已经是新版本了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5679 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:07 · PVG 10:07 · LAX 19:07 · JFK 22:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.