Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StuffbyYuki/e24f609d3caf45c1dbec53c604ceaad3 to your computer and use it in GitHub Desktop.
Save StuffbyYuki/e24f609d3caf45c1dbec53c604ceaad3 to your computer and use it in GitHub Desktop.
Python:Git - Command to write & read from a requirements.txt file
#Do when your virtual environment is active
#source env/bin/activate
#pip install YOURPACKAGE
pip freeze > requirements.txt #Write installed pip packages to a text tile
pip install -r requirement.txt #install all packages in requirement.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment