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