Q:

Pip requirements file: do not install dependencies

I am using some github django packages' bleeding edge version which have dependencies I do not want to install.
In dev, on my own computer, I can use pip install in command line and use the --no-dependencies flag. However, my test and production environments need a requirements file for deployment purposes. Unfortunately, the --no-dependencies flag cannot be used in a requirements file as explained here : https://pip.pypa.io/en/latest/reference/pip_install.html#requirements-file-format.
Is there any way to tell pip not to install dependencies when using a requirements file ?

A:

I work around this by using two requirements files, and calling pip twice.
pip install -r requirements.txt
pip install --no-deps -r no_deps.txt

