subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for pkg in pip_fixable: print(f"\n 正在安装 {pkg} ...") try: r = subprocess.run( [sys.executable, "-m", "pip", "install", pkg], capture_output=True, text=True, timeout=120 )- Confidence
- 92% confidence
- Finding
- r = subprocess.run( [sys.executable, "-m", "pip", "install", pkg], capture_output=True, text=True, timeout=120 )
