46

I'm using pip in a virtualenv and have installed a package from a git repo by doing this:

pip install -e git://github.com/dwaiter/django-bcrypt.git@475a3bef1e3ff31935a2dc905e244a63a804fce9#egg=django_bcrypt-dev

But I now want to uninstall that and can't see how, as it doesn't have a conventional package name. I've tried what seem like obvious variations (like replacing 'install' with 'uninstall') but can't see how to do this from the docs.

(In this case I ultimately want to upgrade from the git repo version of django-bcrypt to version 0.9.2, and am assuming I need to uninstall the git version first.)

1 Answer 1

56

You uninstall it like you would any other library:

pip uninstall django-bcrypt

If you want to ultimately upgrade, you could also do

pip install --upgrade -e git://github.com/dwaiter/django-bcrypt.git#egg=django_bcrypt

11
  • Doh, what an idiot I am. I thought I'd tried everything, including "pip uninstall django-bcrypt-dev" but must have overlooked the most obvious! Thanks zsquare. Jan 19, 2012 at 13:44
  • 1
    No problemo :). Extra characters so that i can post this damn comment
    – zsquare
    Jan 19, 2012 at 15:08
  • 3
    It doesn't work for me. pip freeze gives "-e git://github.com/mikemaccana/python-docx.git@53a0e3dd0e91ff9c911e8d8824a7c89df6c587c8#egg=docx-dev" but pip uninstall python-docx result in error "Cannot uninstall requirement python-docx, not installed". With pip 1.0.2. Any idea why? Thanks in advance. Apr 2, 2012 at 14:08
  • 1
    Ok, it works. The right package name was in fact just "docx", not "python-docx" nor "docx-dev". Apr 2, 2012 at 15:03
  • 2
    Had this issue too, turns out the package was installed in some weird location and pip would say "Uninstalled successfully" when it wasn't actually uninstalled. You can find it by doing: python -c 'import X; help(X)' and just deleting the folder.
    – robbrit
    Dec 6, 2012 at 15:50

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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