Skip to content

How do I pip install a package in a private repo? #283

Closed Answered by costrouc
kcpevey asked this question in Q&A
Discussion options

You must be logged in to vote

There are two common approaches both use the fact that pip can install from a url a tarball. https://pip.pypa.io/en/stable/reference/pip_install/#git. If you use the git+ssh you need to setup an github deploy key and setup your ssh .ssh/config to use the correct ssh private key. Or you can embed the username and api token https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token. You would call it as git+https://<username>:<token>@:git.example.com/MyProject#egg=MyProject

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kcpevey
Comment options

kcpevey Jan 29, 2021
Maintainer Author

Answer selected by kcpevey
Comment options

You must be logged in to vote
0 replies
Comment options

kcpevey
Sep 17, 2024
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants