tags:

views:

55

answers:

2

Hi,

Can you delete python modules? I've installed one that I would like to remove, and can't seem to figure out how.

Thanks

+1  A: 

This has already been asked here.

Go into the "site-packages" directory of your python install and remove the files manually.

manifest
It doesn't seem to be in the "site-packages" directory..
Matthew
+2  A: 

To find where the module is, just do a:

 $ python
 >> import module
 >> print module.__file__
 '/some/directory'

or if it is a package:

 >> import package
 >> print package.__path__

and delete it.

rlotun
Even easier: I've never seen "print module" fail to properly display it's location, whether module, package, inside zip file, etc.
Peter Hansen