48

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

61

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

Sign up to request clarification or add additional context in comments.

10 Comments

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.
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.
Ok, it works. The right package name was in fact just "docx", not "python-docx" nor "docx-dev".
This didn't work for me at first. It turns out pip 1.0.2 didn't work for me, but pip 1.1 did. "pip install pip --upgrade" solved my problem.
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.
|

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.