How to use a direct GitHub source in requirements.txt?

Normally your requirements.txt file would look something like this:

To specify a Github repo, you do not need the package-name== convention.

The examples below update package-two using a GitHub repo. The text between @ and # denotes the specifics of the package.

Specify commit hash (41b95ec in the context of updated requirements.txt):

Specify branch name (master):

Specify tag (0.1):

Specify release (3.7.1):

Leave a Reply

Close Menu