如果我在我的OS X Lion 10.7.4上使用“sudo easy_install pip”,那么如何干净地卸载它?
安装后,我还执行了“pip install --upgrade setuptools”命令。
以下是输出结果:
由easy_install安装的pip在执行
以下是输出结果:
mac:~ usr$ sudo easy_install pip
Password:
Searching for pip
Reading http://pypi.python.org/simple/pip/
Best match: pip 1.5.4
Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb
Processing pip-1.5.4.tar.gz
Running pip-1.5.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-b_hfrF/pip-1.5.4/egg-dist-tmp-o0r8F5
warning: no files found matching 'pip/cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.5.4 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Installed /Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
由easy_install安装的pip在执行
brew install python
时会导致符号链接问题,因为它将自己的pip安装到了/usr/local/bin目录下。lrwxr-xr-x 1 usr admin 30 3 3 23:26 pip -> ../Cellar/python/2.7.6/bin/pip
lrwxr-xr-x 1 usr admin 31 3 3 23:26 pip2 -> ../Cellar/python/2.7.6/bin/pip2
lrwxr-xr-x 1 usr admin 33 3 3 23:26 pip2.7 -> ../Cellar/python/2.7.6/bin/pip2.7
我知道可以使用brew link --overwrite python
命令,但是如果我不使用easy_install安装的pip,它会留在我的系统中。我更喜欢保持我的系统干净。
有人能解释一下这些警告是什么意思吗?我知道它们不会造成任何损害,但我很好奇是否缺少任何依赖项?
谢谢。