Home > python > python setup.py uninstall

python setup.py uninstall

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: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment

Design a site like this with WordPress.com
Get started