If you have lately installed a module using python's distutils then you must have hit the wall when it comes to un-installing the same. python-pip
is good but then it would not work if you have used python's distutils actually to install it in the first place.
This is most probably what you have done to install your python module
$ cd "module directory"
$ python3 setup.py sdist
$ sudo python3 setup.py install
#this is any one of the python shells..
> import <module name>
>
# and it workS!!
python-pip
is the intuitive next, but that does not work since it is deprecated and allpackages installed by distutils would have to be manually purged.
$ pip uninstall <packagename>
#does not remove..
# in the python shell
> import <packagename>
#still works!
Here is how you remove the module
$ sudo rm /usr/lib/python/site-packages/packagename*
# you are done
> import <packagename>
NameError : No such module found !