About Installing Python Modules from the GitHub Repository

To install a Python package from GitHub repository, put this in the requirements.txt:

1
2
-e git+https://github.com/<username>/<repository_name>.git@\
<branch_name_or_commit_id>#egg=<module_name>

The package will be installed in the src directory of your virtual environment. You'll have a possibility to edit it and push the changes back to GitHub.

Tips and Tricks Development Python 3 Git pip