You are not logged in.

#1 2005-12-23 14:20:20

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

How to uninstall something installed using a python script?

This should be an easy one, I just can't find the answer  tongue

I just installed something called gadfly by doing python setup.py as the readme told me; how can I now uninstall it? Am I able to?


.oO Komodo Dave Oo.

Offline

#2 2005-12-23 17:47:54

TPJ
Member
From: Gliwice, Poland
Registered: 2005-12-21
Posts: 33

Re: How to uninstall something installed using a python script?

I haven't found anything about uninstalling Python modules in the documentation of the Python 2.4.2 (the distutils module, to be precise). There are many various commands for setup.py script, like build and install, but I haven't found any uninstall command.

But it's Python - my favourite programming language - and I know something about it. Unless the setup.py script does something very unusual, you can always uninstall an installed module manually, by removing all the installed files. It's quite easy. Let's assume, that you Python is installed in /path/to/Python. Then you should:
1) go to the /path/to/Python/lib/pythonX.Y/site-packages directory and look for all the files and/or directories that belong to the installed module (their names will be the same as the name of the installed module; e.g. the PyGame module has the directory named pygame).
2) just delete all these files and/or directories.

I had done it many times before I learnt to test a module before installing it.

Offline

#3 2005-12-23 22:59:57

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: How to uninstall something installed using a python script?

Thanks a bunch TPJ, I'll follow your advice smile


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB