如何安装特定的 github repo 分支?
How to install specific github repo branch?
我正在尝试在 Whosebug 上安装最新的 branch of a github repo into my google colab editor. I guess I haven't yet figured out the correct syntax, despite trying out different suggestions。到目前为止我尝试过的是
pip install git+https://github.com/astropy/astroquery/pull/2214
pip install git+https://github.com/weaverba137/astroquery/tree/sdss-spectra-url
但它们都会导致错误消息。下载分支的正确方法是什么?发送
试试这个,它在我的 colab 中有效:
pip install https://github.com/astropy/astroquery/archive/main.zip
我想我自己想出了如何下载正确的 version/branch/patch。为此,请按照 link 到我在问题中发布的分支。然后点击顶部的link指向分支的原点:
然后在新页面中单击带有下拉菜单的绿色“代码”按钮,然后从那里复制这个 repo/branch/pull/patch/whatever 的地址,它被称为:
并最终使用这个复制的地址
!pip install git+https://github.com/weaverba137/astroquery.git
我正在尝试在 Whosebug 上安装最新的 branch of a github repo into my google colab editor. I guess I haven't yet figured out the correct syntax, despite trying out different suggestions。到目前为止我尝试过的是
pip install git+https://github.com/astropy/astroquery/pull/2214
pip install git+https://github.com/weaverba137/astroquery/tree/sdss-spectra-url
但它们都会导致错误消息。下载分支的正确方法是什么?发送
试试这个,它在我的 colab 中有效:
pip install https://github.com/astropy/astroquery/archive/main.zip
我想我自己想出了如何下载正确的 version/branch/patch。为此,请按照 link 到我在问题中发布的分支。然后点击顶部的link指向分支的原点:
然后在新页面中单击带有下拉菜单的绿色“代码”按钮,然后从那里复制这个 repo/branch/pull/patch/whatever 的地址,它被称为:
并最终使用这个复制的地址
!pip install git+https://github.com/weaverba137/astroquery.git