Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Added the option to install from a subdirectory too.
Source Link
vikas027
  • 5.8k
  • 5
  • 44
  • 53

Instructions to install from private repo using ssh credentials:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

To install a package from a subdirectory, say stackoverflow

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version#subdirectory=stackoverflow

https://pip.pypa.io/en/stable/topics/vcs-support/

Instructions to install from private repo using ssh credentials:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

https://pip.pypa.io/en/stable/topics/vcs-support/

Instructions to install from private repo using ssh credentials:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

To install a package from a subdirectory, say stackoverflow

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version#subdirectory=stackoverflow

https://pip.pypa.io/en/stable/topics/vcs-support/

Added source for "git+ssh" syntax.
Source Link
Jaakko
  • 5.5k
  • 3
  • 30
  • 20

Instructions to install from private repo using ssh credentials:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

https://pip.pypa.io/en/stable/topics/vcs-support/

Instructions to install from private repo using ssh credentials:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

Instructions to install from private repo using ssh credentials:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

https://pip.pypa.io/en/stable/topics/vcs-support/

Removed "development" section of answer as the question is about installing remotely without manual cloning.
Source Link
Jaakko
  • 5.5k
  • 3
  • 30
  • 20

Instructions to install from private repo using ssh credentials.

For usage::

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

For development:

$ git clone [email protected]/myuser/foo.git@my_version
$ pip install --editable ./

Instructions to install from private repo using ssh credentials.

For usage:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version

For development:

$ git clone [email protected]/myuser/foo.git@my_version
$ pip install --editable ./

Instructions to install from private repo using ssh credentials:

$ pip install git+ssh://[email protected]/myuser/foo.git@my_version
edited body
Source Link
Jaakko
  • 5.5k
  • 3
  • 30
  • 20
Loading
Forgot $ from the first pip command.
Source Link
Jaakko
  • 5.5k
  • 3
  • 30
  • 20
Loading
added 230 characters in body
Source Link
Jaakko
  • 5.5k
  • 3
  • 30
  • 20
Loading
Source Link
Jaakko
  • 5.5k
  • 3
  • 30
  • 20
Loading