您需要整个python软件包,其中包含一个
setup.py文件。
名为的软件包为
foo:
foo # the installable package├── foo│ ├── __init__.py│ └── bar.py└── setup.py
然后像这样从github安装:
$ pip install git+ssh://git@github.com/myuser/foo.gitor$ pip install git+https://github.com/myuser/foo.git@v123or$ pip install git+https://github.com/myuser/foo.git@newbranch
有关更多信息,请访问https://pip.pypa.io/en/stable/reference/pip_install/#vcs-
support



