推荐学习书目
› 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
UtopiaCHN
V2EX  ›  Python

求助: Mac 下的 pip 损坏了如何修复

  •  
  •   UtopiaCHN · Dec 27, 2016 · 4697 views
    This topic created in 3574 days ago, the information mentioned may be changed or developed.

    问题描述:我看到提示信息“ You are using pip version 8.1.2, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.”,就执行了 pip install --upgrade pip ,结果升级失败了,执行 pip 命令出现如下报错信息

    Utopia:downloads utopia$ pip
    Traceback (most recent call last):
    File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==8.1.2', 'console_scripts', 'pip')()
    File     "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 565, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2696, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group, name),))
    ImportError: Entry point ('console_scripts', 'pip') not found
    
    UtopiaCHN
        1
    UtopiaCHN  
    OP
       Dec 27, 2016
    重新安装覆盖解决了
    jy01264313
        2
    jy01264313  
       Dec 27, 2016   ❤️ 1
    为啥要在系统的 python 里面搞,用 pyenv 啊
    IanPeverell
        3
    IanPeverell  
       Dec 27, 2016   ❤️ 1
    也可以试试手动删除,用 easy_install 重新安装

    我比较推荐 virtualenv
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1046 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:59 · PVG 06:59 · LAX 15:59 · JFK 18:59
    ♥ Do have faith in what you're doing.