使用 Pip 安装来自于 git 仓库的软件包
https 链接# @ 后加版本号# ssh 链接从 github 的 Copy 按钮复制下来的 ssh 链接中github.com和<user>是使用冒号连接,这种格式会出错,请手动改为。
·
原文地址:使用 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>
是使用冒号连接,这种格式会出错,请手动改为 /
。
参考文章
pip直接安装git上的项目_pip git+-CSDN博客https://blog.csdn.net/qq_26884501/article/details/122182386
更多推荐
所有评论(0)