使用pipreqs导出python项目所需的环境

安装pipreqs

pip install pipreqs

使用方法:

pipreqs  项目路径

会自动导出requirements.txt文件

若出现encoding错误,进入pipreqs.py直接修改对应行为utf-8即可

使用pip install -r requirements.txt  即可安装项目所需环境。

猜你喜欢

转载自www.cnblogs.com/ywheunji/p/12155241.html