Skip to content

Instantly share code, notes, and snippets.

@GenevieveBuckley
Last active December 17, 2019 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GenevieveBuckley/e1aaf603c1a84c09ec6afe8c72e97926 to your computer and use it in GitHub Desktop.
Save GenevieveBuckley/e1aaf603c1a84c09ec6afe8c72e97926 to your computer and use it in GitHub Desktop.
pip install code directly from a github repository
# pip install code directly from github with:
pip install git+https://github.com/path/to/repo
pip install git+https://github.com/path/to/repo.git
# Note: the repository must include setup.py file to be pip installable.
# You can specify a specific repository branch with:
pip install git+https://github.com/path/to/repo@branchname
pip install git+https://github.com/path/to/repo.git@branchname
# Or you can specify a particular tag (useful for choosing a specific release):
pip install git+https://github.com/path/to/repo@v2.4.0
pip install git+https://github.com/path/to/repo.git@v2.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment