https://docs.python.org/3.9/library/compileall.html#cmdoption-compileall-b
可能是没设置递归编译层数
加-r解决问题
python3 -m compileall -r 100 -b ${target_dir} # -r选项设置递归子目录层数,python3.7默认10
本文介绍了解决Python中compileall模块递归编译层数限制的方法。通过使用-r选项可以指定递归子目录的最大层数,解决深层目录结构下的编译问题。
https://docs.python.org/3.9/library/compileall.html#cmdoption-compileall-b
可能是没设置递归编译层数
加-r解决问题
python3 -m compileall -r 100 -b ${target_dir} # -r选项设置递归子目录层数,python3.7默认10
1991

被折叠的 条评论
为什么被折叠?