For future reference I recommend installing virtualenv and virtualenvwrapper to stop anything like this happening again. Virtaulenv lets you keep separate, distinct python installations for each of your projects and Virtualenvwrapper makes it easy to work with them. Then any mess ups you cause are limited to one project.
For your current problem, anything you installed using pip can be removed with pip's uninstall command. The following shell script from pastebin (I haven't tested it, just to give you warning, and do not accept any responsibility for any loss or damage it might cause , though I can't see anything harmful in it) should remove all pip packages simultaneously:
#!/bin/bash
#if [ "$#" -ne 1 ]; then
# echo "Usage: $0 <py pkg name using \$(pip freeze -l)>"
# exit
#fi
for plugin in $(pip freeze -l); do
PLUGIN=$(echo "$plugin" | awk -F == '{print $1}')
echo "Uninstalling $PLUGIN..."
expect -c "spawn pip uninstall $PLUGIN
expect {
\"Proceed (y/n)?\" {
send \"y\r\n\"
expect {
exit
}
}
}"
done
Regrettably I don't think there is an easy way to remove packages installed with easy-install because it doesn't keep track of what you installed, which is partly why pip was developed.
pipandeasy_install. I'm fine blowing those away if I can get at however the default synaptic state is in. – Rich Jun 26 '12 at 19:10