pip:如何安装git pull请求 [英] pip: how to install a git pull request
本文介绍了pip:如何安装git pull请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用pip安装git pull请求以在本地virtualenv中进行测试.我想直接从github安装它,而无需创建本地git存储库.
I want to install a git pull request with pip for testing in my local virtualenv. I want to install it directly from github, without creating a local git repository.
推荐答案
您可以通过添加哈希将精确的提交添加到URL:
You can add the exact commit to the URL by appending the hash:
pip install git+https://github.com/other-repository/project.git@remote_branch_name
示例:
pip install --user git+https://github.com/d1b/pip.git@fix_pip_build_directory
或者一次提交.但是,如果拉取请求(远程分支)已更新,则不会更新:
Or to a single commit. But this does not get updated, if the pull request (remote branch) gets updated:
pip install --user git+https://github.com/d1b/pip.git@d89b5803db2b520e754b9b26b771d22121738637
这篇关于pip:如何安装git pull请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文