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
UtopiaCHN
V2EX  ›  Python

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

  •  
  •   UtopiaCHN · 2016-12-27 10:16:19 +08:00 · 3702 次点击
    这是一个创建于 2648 天前的主题,其中的信息可能已经有所发展或是发生改变。

    问题描述:我看到提示信息“ 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
       2016-12-27 10:44:17 +08:00
    重新安装覆盖解决了
    jy01264313
        2
    jy01264313  
       2016-12-27 11:19:28 +08:00   ❤️ 1
    为啥要在系统的 python 里面搞,用 pyenv 啊
    IanPeverell
        3
    IanPeverell  
       2016-12-27 12:09:58 +08:00   ❤️ 1
    也可以试试手动删除,用 easy_install 重新安装

    我比较推荐 virtualenv
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3580 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.