Generate a list of all dependent requirements.txt
1. pipreqs Tools
installation)
pip install pipreqs
Execution dependency list generation command)
pipreqs ./
Perfect version:
pipreqs ./ --encoding=utf-8
Use requirements.txt automatically install all dependencies
pip install -r requirements.txt
2) export all depend python
pip freeze > requirements.txt
requirements.txt 说明:
Base -R & lt .txt # Base .txt all following packets
pypinyin == 0.12 . 0 # specified version (most everyday writing) Django -querycount > = 0.5 . 0 # greater than a version Django -debug -toolbar > = 1.3 . 1 , <= 1.3 . 3 version # range