如何使用 pip 安装特定 git 修订版/分支
你可以使用 pip install git+https://...@branch 语法安装仓库的特定分支。
这适用于分支和标签:
pip_install_branch.sh
pip install git+https://github.com/myuser/myrepo.git@mybranch或者,要选择特定修订版,只需使用修订版 ID(较短的修订版 ID 也可以):
pip_install_revision.sh
pip install git+https://github.com/myuser/myrepo.git@aa1edc18e0fb8dc12f550d3b0588eb2c53915097If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow