系统环境: 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/ 目录,删掉就好了。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.