已成功卸载:
第一步:安装pip,终端里sudo -i输入密码后,输入easy_install pip:
1:~ root# easy_install pip
Searching for pip
Best match: pip 6.0.8
Adding pip 6.0.8 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip3.4 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip3 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Processing dependencies for pip
Finished processing dependencies for pip
第二步:卸载pycrypto(偶把输入错误的命令也写上来了,不要笑)
1:~ root# pip uninstall -r
Usage:
pip uninstall [options] <package> …
pip uninstall [options] -r <requirements file> …
-r option requires an argument
1:~ root# pip uninsatll -r pycrypto
ERROR: unknown command “uninsatll” – maybe you meant “uninstall”
1:~ root# pip uninstall -r pycrypto
Could not open requirements file: [Errno 2] No such file or directory: ‘pycrypto’
1:~ root# pip unistall -y pycrypto
ERROR: unknown command “unistall” – maybe you meant “uninstall”
1:~ root# pip uninstall -y pycrypto
Uninstalling pycrypto-2.6.1:
Successfully uninstalled pycrypto-2.6.1