Skip to content Skip to sidebar Skip to footer

How To Pip Install Git Repository With Requirements

So I have a common library repository which looks something like: common __init__.py foo __init__.py bar.py README.md requirements.txt setup.py In a separa

Solution 1:

When you pip install it uses setup.py of the downloaded package to find dependencies, as opposed to running "-r requirements.txt".

Changing the setup.py of common to define dependencies is what you're after.

For an example of defining install_requires in your setup.py file, see the Hitchhiker's Guide to Packaging.

Solution 2:

pip -r <file|url> supports eitehr a local file or a url. e.g:

pip install -r http://localhost:8080/requirements.txt

Tested and confirmed.

Post a Comment for "How To Pip Install Git Repository With Requirements"