How do I uninstall Python packages that have been built from source and installed via…
python setup.py build
python setup.py install
?
pythonUbuntu
How do I uninstall Python packages that have been built from source and installed via…
python setup.py build
python setup.py install
?
Best Answer
If your package provider didn't produce a
setup.py uninstall
method then, more often than not, you can just manually remove the package from your Python'ssite-packages
directory.This will be located at
/usr/lib/python2.5/site-packages
or equivalent for your distro and version of Python. Within that there will be either a directory or a.egg
file corresponding to the package's name. Simply delete that.There are some instances where packages will install stuff elsewhere. Django for instance installs
django-admin.py
to/usr/sbin
. Your best bet is to runsetup.py install
again, make a note of what it is installing where and then cleanup.