Pip Install from a Private Repo
Python
How to pip install from a private repo
You can pip install in the following way:
In setup.py
, we can add these packages in the following way:
setup(
name='<package>',
install_requires=[
'<package_name>@git+ssh://git@github.com/<user>/<repo_name>@<branch>',
'<package_name>@git+https://<access_token>@github.com/<user>/<repo_name>@<branch>'
]
)
If we are doing editable installation, it looks like the following:
For GitLab CI/CD, one needs to do it in the following way: