Install pip-tools (pip example):
pip install pip-tools
Generate new dependencies (or first update direct dependencies in requirements.in):
pip-compile --upgrade requirements.in