推荐学习书目
› 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 · Jul 26, 2016 · 7978 views
    This topic created in 3751 days ago, the information mentioned may be changed or developed.


    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 replies  •  2016-08-01 14:23:51 +08:00
    yangtukun1412
    yangtukun1412
    Jul 26, 2016
    1
    If executing pip with sudo, you may want sudo's -H flag.
    mrytsr
    mrytsr
    Jul 26, 2016 via Android
    2
    sudo
    shimanooo
    shimanooo
    Jul 26, 2016
    3
    非正面解决问题: pip install --user ...
    strwei
    strwei
    Jul 26, 2016
    4
    你需要梯子吧
    xiashali
    xiashali
    Jul 26, 2016
    5
    sudo -H
    cloverstd
    cloverstd
    Jul 26, 2016
    6
    这个是 warning 吧,不是 error
    如果是 error 的日志,会是红色的字:D
    pengjiayou
    pengjiayou
    OP
    Jul 26, 2016
    7
    @cloverstd 我記得以前並沒有這樣的提示,到底是爲神馬?
    pengjiayou
    pengjiayou
    OP
    Jul 26, 2016
    8
    @shimanooo 這是新版本 pip 的問題麼?我記得以前就沒有這樣的提示。
    quxw
    quxw
    Jul 27, 2016
    9
    这个是个 warning
    然后,你可以不用 cache
    然后,升级下 pip
    pengjiayou
    pengjiayou
    OP
    Aug 1, 2016
    10
    @quxw 貌似已经是新版本了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5044 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 07:59 · PVG 15:59 · LAX 23:59 · JFK 02:59
    ♥ Do have faith in what you're doing.