Python 调 shell 命令一直报 CalledProcessError returncode 1 怎么拿到真实 stderr 而不是空 陆零云 2026-11-09 11:10:38 35 0 现象:subprocess.run 抛 CalledProcessError,stderr 打印是空 用 Python 调 ffmpeg 压缩视频,subprocess.run 抛 CalledProcessError,returncode 是 1,按说 stderr 能看到 ffmpeg 报错,但 print(e.stderr) 出来是空。把 check=False 去掉自己判断 returncode 也一样,stderr 就是空。排查半天发现是 she...