I need help with adding a package from GitHub to my requirements.txt file. I can install the package directly using this command:
pip install git+https://github.com/company/awesome-library.git
This works perfectly when I run it manually. But now I want to include this same dependency in my requirements.txt so other developers can install it automatically.
I tried adding these lines to my requirements.txt:
-f git+https://github.com/company/awesome-library.git
awesome-library==1.2.dev
But when I run pip install -r requirements.txt
, I get this error:
Downloading/unpacking awesome-library==1.2.dev (from -r requirements.txt (line 15))
Could not find a version that satisfies the requirement awesome-library==1.2.dev
No distributions matching the version for awesome-library==1.2.dev
What is the correct way to specify a GitHub repository as a dependency in requirements.txt? I looked through the pip documentation but could not find clear examples for this specific use case.