使用pip从Git repo安装不可编辑的标签/分支 [英] Install non-editable tag/branch from Git repo with pip
问题描述
我想使用点子,似乎无法找出方法.
I would like to install a non-editable (e.g. no -e
option) tag or branch from a Git repo using pip and cannot seem to find out how to do it.
如果我这样做:
pip install git+git://github.com/django/django.git@1.2.5#egg=django
它仅安装Django master
分支,而不安装1.2.5
标记.我知道我可以使用-e
选项安装它,但是我不想用我没有修改的软件包填充src
目录.这似乎应该是一件容易的事,但我似乎却不怎么做...
It just installs Django master
branch and not the 1.2.5
tag. I know that I can install it using the -e
option but I don't want to fill up my src
dir with packages I am not modifying. This seems like it should be straightforward thing to do but I can't seem how to do it...
这可能吗?如果是这样,我该怎么做?
Is this possible? If so, how can I accomplish it?
谢谢您的回答!
推荐答案
您可能正在使用旧的pip版本.尝试升级您的点数:
You are probably using an old pip version. Try upgrading your pip:
pip install --upgrade pip
有一个问题,我刚刚尝试了0.8.2版(它是最新的),并且有效;-)
There was an issue to it, and I just tried version 0.8.2 (the latest at the moment) and it works ;-)
这篇关于使用pip从Git repo安装不可编辑的标签/分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!