pip hook into uninstall code example Example: uninstall a python package from virtualenv pip uninstall <packagename>