Python3 - pipreqs模块 - 实现项目依赖库的信息抽取

目录

一、使用方式

二、使用原因


一、使用方式

  • 安装方式 pip3 install pipreqs
  • 生成依赖文件 requirements.txt :pipreqs ./ --encoding=utf8
  • 根据依赖文件安装项目依赖:pip3 install -r requirements.txt 

二、使用原因

方便告知他人该项目依赖的库及起使用版本。防止执行错误的等。

猜你喜欢

转载自blog.csdn.net/qq_33961117/article/details/87644301