Requirements.txt

Create

pip freeze | sort > requirements.txt  # alias sort='LC_ALL=C sort'
pip freeze | LC_ALL=C sort > requirements.txt

Sort

sort requirements.txt -o requirements.txt  # alias sort='LC_ALL=C sort'
LC_ALL=C sort requirements.txt -o requirements.txt

Install

pip install -r requirements.txt

References

[1] KENNETH REITZ, A Better Pip Workflow™

results matching ""

    No results matching ""