如何卸载Python通过setup.py安装的模块

1、获取位置

sudo easy_install -m BitVector
....
Using /usr/local/lib/python2.6/dist-packages
....

2、删除egg文件和py、pyc

cd /usr/local/lib/python2.6/dist-packages
rm -rf BitVector-3.0.egg-info
rm BitVector.py
rm BItVecvor.pyc

Leave a Reply

Your email address will not be published.