requirements_txt的使用与依赖管理
生成requirments.txt
pip freeze > requirements.txt
或者
pip install pipreqs
pipreqs --encoding utf-8 "./"
安装依赖
pip install -r requirements.txt
安装并升级
pip install -U -r requirements.txt
参考
https://learnpython.com/blog/python-requirements-file/