如何使用pip卸载git repo? [英] How to uninstall a git repo using pip?
问题描述
我在virtualenv中使用pip,并通过执行此操作从git repo安装了一个包:
pip install -e git://github.com/dwaiter/django-bcrypt.git@475a3bef1e3ff31935a2dc905e244a63a804fce9#egg=django_bcrypt-dev
但是我现在想卸载它,但看不到如何,因为它没有传统的软件包名称。我尝试了一些看起来很明显的变体(比如用'uninstall'替换'install'),但看不到如何从文档中做到这一点。
(In这种情况下,我最终想从django-bcrypt的git repo版本升级到版本0.9.2,并假设我需要先卸载git版本。)
您可以像卸载任何其他库一样卸载它:
pip卸载django-bcrypt $ c
$ b $ p
$ b $ pip install --upgrade -e git://github.com/dwaiter/django-bcrypt.git#egg=django_bcrypt
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.)
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
这篇关于如何使用pip卸载git repo?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!