Archive

Posts Tagged ‘uninstall’

python setup.py uninstall

November 2, 2014 Leave a comment

Problem
Sometimes you need to install a software with “python setup.py install“. However, if you want to get rid of it, there is no “python setup.py uninstall” or “python setup.py remove”. Stupid, but true.

Solution
I found the solution here. In short:

# install:
$ (sudo) python setup.py install

# uninstall:
$ pip freeze | grep PATTERN_BASED_ON_PACKAGE_NAME
# then remove with pip:
$ (sudo) pip uninstall PACKAGE_NAME
Categories: python Tags: , ,