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