subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print(f"检测到依赖缺失,正在根据 {requirements_path} 安装依赖。") try: subprocess.check_call(command, env={**os.environ, "PIP_DISABLE_PIP_VERSION_CHECK": "1"}) except subprocess.CalledProcessError as exc: raise RuntimeError( "依赖自动安装失败。常见原因是全局 Python 环境被 PEP 668 管理、pip 不可用、"- Confidence
- 83% confidence
- Finding
- subprocess.check_call(command, env={**os.environ, "PIP_DISABLE_PIP_VERSION_CHECK": "1"})
