使用freeze命令存在一个问题,生成的requirements.txt文件保存了当前Python环境下所有类库包,而pipreqs只包含当前项目下使用到的类库

使用方法:

1. pip3 install pipreqs

2.pipreqs .

 

安装所需类库内容执行pip3 install -r requirements.txt即可

相关文章:

  • 2021-10-04
  • 2021-08-04
  • 2022-02-24
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-08-08
  • 2021-06-17
  • 2021-12-28
相关资源
相似解决方案