原文地址:使用 Pip 安装来自于 git 仓库的软件包 - Only(AR)'s blog (onlyar.site)
命令介绍
# https 链接
pip install git+https://github.com/<user>/<repo>.git
# @ 后加版本号
pip install git+https://github.com/<user>/<repo>.git@<ver>
# ssh 链接
pip install git+ssh://git@github.com/<user>/<repo>.git@<ver>
注意:
从 github 的 Copy 按钮复制下来的 ssh 链接中 github.com
和 <user>
是使用冒号连接,这种格式会出错,请手动改为 /
。