需求

  • 使用pip 从 git仓库而不是pypi源安装python包
  • 不是从master分支拉取而是其他分支(例子 test分支)
  • setup.py 不在根目录下面

例子

github地址: https://github.com/Me1onRind/pip_demo test分支

+ pip_demo
| + foo
	| + bar
	  | - demo.py
	| - setup.py
pip install git+ssh://git@github.com/Me1onRind/pip_demo.git@test#"egg=bar&subdirectory=foo"

ssh协议的情况下 域名和仓库路径之间的分割符合是 : 需要替换为 / 否则会报 ssh: Could not resolve hostname 的错误

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-12-15
  • 2021-08-22
相关资源
相似解决方案