Created
May 18, 2023 12:30
-
-
Save mvidaldp/ace4484fa697e8666e7a99f4af542515 to your computer and use it in GitHub Desktop.
Store current Python packages versions using pip freeze
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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