Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mvidaldp/ace4484fa697e8666e7a99f4af542515 to your computer and use it in GitHub Desktop.
Save mvidaldp/ace4484fa697e8666e7a99f4af542515 to your computer and use it in GitHub Desktop.
Store current Python packages versions using pip freeze
# Assuming you are in your desired Python environment, just run:
pip freeze --local | grep = > requirements.txt
# "grep =" ensures it will only list packages and versions
# Then, for restoring the packages, just run "pip install -r requirements.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment