Remove a python dependency by hand

Posted by acidjunk on May 29, 2013

If you are on a system without pip or easyinstall, and you can’t use the OS package system: You need to remove all installed files manually, and also undo any other stuff that the installation did manually. Changes are that you don’t know the list of all files it installed, you can reinstall it with the –record option, and take a look at the list this produces.

python setup.py install --record files.txt

And when you think the list is complete:

cat files.txt | xargs rm -rf