【发布时间】:2021-09-19 17:41:35
【问题描述】:
我知道我可以安装 master 分支:
pip install git+https://github.com/USER/REPO
我也知道我可以通过以下方式安装特定版本:
pip install git+https://github.com/USER/REPO@RELEASE
但是有没有办法安装最新版本(GitHub 在https://github.com/USER/REPO/releases/latest 返回的那个)?我尝试了以下方法:
pip install git+https://github.com/USER/REPO@latest
但它失败了:
ERROR: Command errored out with exit status 1: git checkout -q latest
编辑:这个问题不是Pip doesn't install latest GitHub release 的重复问题。后者是关于如何安装特定版本和/或从 master 分支,而不是从最新版本。
【问题讨论】:
-
这能回答你的问题吗? Pip doesn't install latest GitHub release