Python 生成当前项目依赖包 requirements

Python 生成当前项目依赖包 requirements

安装 pipreqs

pip install pipreqs

执行命令,在当前工程目录生成

pipreqs . --encoding=utf8 --force

使用requirements.txt安装依赖的方式

pip install -r requirements.txt

posted @ 2020-05-28 14:25  木子墨墨  阅读(1245)  评论(0编辑  收藏  举报