从GIT回购分支安装pip [英] pip install from git repo branch
本文介绍了从GIT回购分支安装pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
pip
安装一个repo的特定分支。 Google告诉我
pip install https://github.com/user/repo.git@branch
分行名称是 issue / 34 / oscar-0.6
所以我做了 pip安装https://github.com/tangentlabs/django-oscar-paypal.git@ /issue/34/oscar-0.6
但它返回一个404。
如何安装此分支?
$ b $前缀 git +
(请参阅 .o / en / stable / reference / pip_install /#vcs-support> VCS Support ): 点子安装git + https://github.com/tangentlabs/django-oscar-paypal.git@issue/34/oscar-0.6
并指定分支名称,但不包含前导 /
。
Trying to pip
install a repo's specific branch. Google tells me to
pip install https://github.com/user/repo.git@branch
The branch's name is issue/34/oscar-0.6
so I did pip install https://github.com/tangentlabs/django-oscar-paypal.git@/issue/34/oscar-0.6
but its returning a 404.
How do I install this branch?
解决方案
Prepend the url prefix git+
(See VCS Support):
pip install git+https://github.com/tangentlabs/django-oscar-paypal.git@issue/34/oscar-0.6
And specify the branch name without the leading /
.
这篇关于从GIT回购分支安装pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文