Skip to content

Instantly share code, notes, and snippets.

@MarcinKonowalczyk
Created December 14, 2021 12:00
Show Gist options
  • Save MarcinKonowalczyk/49655a6980132bbdd91e321c0da57411 to your computer and use it in GitHub Desktop.
Save MarcinKonowalczyk/49655a6980132bbdd91e321c0da57411 to your computer and use it in GitHub Desktop.

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment