推荐学习书目
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 · Mar 21, 2016 · 8217 views
    This topic created in 3737 days ago, the information mentioned may be changed or developed.

    系统环境: 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/ 目录,删掉就好了。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3255 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:38 · PVG 08:38 · LAX 17:38 · JFK 20:38
    ♥ Do have faith in what you're doing.