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

pip 版本错误怎么办?

  •  
  •   Loki2015 · 2016-03-21 10:09:18 +08:00 · 7507 次点击
    这是一个创建于 3172 天前的主题,其中的信息可能已经有所发展或是发生改变。

    系统环境: OS X EI Capitan

    WEBHOST:~ root$ pip -V

    pip 8.1.1 from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)

    WEBHOST:~ root$ pip install lxml

    Requirement already satisfied (use --upgrade to upgrade): lxml in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages You are using pip version 8.0.2, however version 8.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. WEBHOST:~ root$

    好,首先我们讨论的 不是 lxml 的问题,这玩意已经装好了。 要讨论的是我已经进入了蒙逼模式, pip 已经用 macport 升级到了 8.1.1 为何还说我用的是 8.0.2 肿么办?执行 pip install --upgrade pip 没用谢谢。

    WEBHOST:~ root$ pip install --upgrade pip

    Requirement already up-to-date: pip in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages You are using pip version 8.0.2, however version 8.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

    ------------------------------------------------解决分割线------------------------------------------------

    好了,自己解决了,发现有个 pip-8.0.2.dist-info/ 目录,删掉就好了。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1506 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 17:17 · PVG 01:17 · LAX 09:17 · JFK 12:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.