====== Requirements Files for Python ======
In Python, a requirements.txt file is used to keep track of the modules and packages used in a project.
===== Create a requirements.txt File =====
pip freeze > requirements.txt
===== Install Packages from requirements.txt =====
pip install -r requirements.txt
===== Maintain a requirements.txt File =====
See which packages are out of date:
pip list --outdated
Update package(s), as needed:
pip install -U package_name
Generate a new requirements.txt file:
pip freeze > requirements.txt
{{tag>python}}