修改依赖库导出脚本

This commit is contained in:
azhengzz 2021-02-04 11:39:25 +08:00
parent a92ede6441
commit 9d56d739d8
1 changed files with 3 additions and 1 deletions

View File

@ -12,9 +12,11 @@ if exist %pip% (
echo # 项目目录下Python第三方package依赖树信息 > %cd%\package_deptree_info.txt echo # 项目目录下Python第三方package依赖树信息 > %cd%\package_deptree_info.txt
%pipdeptree% -a >> %cd%\package_deptree_info.txt %pipdeptree% -a >> %cd%\package_deptree_info.txt
) else ( ) else (
echo ***********************【未检测到项目目录下Python解释器使用环境变量下Python解释器】************ echo ***********************【未检测到项目目录下Python解释器使用系统环境变量目录下Python解释器】************
echo # 系统环境变量中Python第三方package信息 > %cd%\package_info.txt echo # 系统环境变量中Python第三方package信息 > %cd%\package_info.txt
pip freeze >> %cd%\package_info.txt pip freeze >> %cd%\package_info.txt
echo # 系统环境变量中Python第三方package依赖树信息 > %cd%\package_deptree_info.txt
pipdeptree -a >> %cd%\package_deptree_info.txt
) )
echo ***********************【导出Python包信息完成】*********************** echo ***********************【导出Python包信息完成】***********************
pause pause