Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How to uninstall all python modules that where ocasionally installed. I need this cleanup (as if it is a fresh installation) to start working with virtualenv. Also I want to be sure that there's no intersection. Also I want to make sure that all preinstalled modules, i.e. needed by the OS, are left still.

The OS is Ubuntu 10.4 LTS.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If you installed the modules using apt-get, you can remove them using apt-get.

If you installed the modules using easy_install, they will be cataloged here: /usr/local/lib/python2.6/dist-packages/easy-install.pth

Here are good instructions for removing easy_install packages. stackoverflow - removing easy_install packages

When attempting to create pristine environments, it's always best to just start with an actual pristine environment. (fire up a fresh U10.04 VM and take stock of what libraries are installed and then do a diff)

share|improve this answer
    
Thanks, I needed easy-install.pth –  mcmlxxxiii Dec 19 '11 at 18:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.