One liner to upgrade pip, install pip-chill and use to create requirements.txt
file for the current project.
The actual file crearted is requirements.~txt
in order not to accidentally overwrite an existing requirements file.
pip install -Uq pip && pip install -Uq pip-chill && pip-chill -v | grep -v pip-chill | tee 'requirements.~txt'