473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to uninstall packages

Recently I had trouble with the sqlite package under my debian etch
box as follows:

I first installed the debian package python-pysqlite1.1 using
synaptic. Since this seemed too old for other packages (sqlalchemy) I
downloaded the sources pysqlite-2.3.4.tar.gz and ran setup install.

This gave the problem that _sqlite was not found.

And now the apt system started complaining that it could not uninstall
it because of some new files.

I finally (seem to have :-) ) got it to work by going into
/usr/lib/python2.4/site-packages/ and deleting the pysqlite directory
and reinstalling using apt.

However this is an unsatisfactory solution because I do not know what
else I should delete

So now my question: How does one uninstall *cleanly*

1a package installed using setup.py install
2a package installed with easy_install

Thanks
Jul 1 '07 #1
1 1768
So now my question: How does one uninstall *cleanly*
>
1a package installed using setup.py install
2a package installed with easy_install
Run "setup.py install" with the --record option; then remove
all files that have been recorded as installed.

This is clean depending on the package being installed;
a package may perform additional actions which don't get
recorded in the --record option; in such a case, you need
to study setup.py and find out what these additional
actions are and how to revert them.

Regards,
Martin
Jul 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rick Muller | last post by:
I've been trying to figure out whether there are any plans to add an "uninstall" feature to the Python distutils. Googling has found several people posting the same question, but, to the best of my...
8
by: Alia Khouri | last post by:
If the cannonical way to install a python app is python setup.py install one would expect the following to uninstall it python setup.py uninstall However, distutils doesn't automatically...
0
by: CK Wong | last post by:
When I try to repair, change config, install and uninstall an existing VB.NET 2K3, it gave me the following error in the file vserror71.txt: Visual Basic .NET Standard 2003 - English: ...
0
by: Gabriel Lozano-Morán | last post by:
We have developed an application that will replace the older version. The older versions comes in two flavors, a Lite and a Pro version. I can successfully remove the previous version of either the...
5
by: seberino | last post by:
It appears that apps distributed as Python Eggs are either a single compressed blob in site-packages directory or a directory under site-packages directory. Is this ALWAYS true? So by just...
0
by: dbowe | last post by:
It is uninstalling one of the applications that i want to uninstall, but not the other.......its not to do with the uninstall string ( if i swap over the strings then it uninstalls the other app fine...
6
by: Mendis | last post by:
Hello I have recently installed DB2 express on UBUNTU and am not able to get it to start. I decided to uninstall and reinstall DB2. When I enter the command sudo ./db2_deinstall it says "No DB2...
2
by: Max | last post by:
Hi! I have to delate mysql / apache / php and then install them again with xampp. How can I unistall php? It is sufficient to delate its folder or it's necessary to delate / change other files...
1
by: pjacobi.de | last post by:
Dear All, It seems I don't understand how Python packages are handled. Here's my specific problem * I'm on Win32 * I've installed Enthought Python 2.5 because it got all the numerical...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.