subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
python_path = self._ensure_venv() pip_path = os.path.join(self.venv_path, "bin", "pip.exe") if os.name == "nt" else os.path.join(self.venv_path, "bin", "pip") print(f"📥 安装 SearXNG 到 {self.venv_path}") subprocess.run([pip_path, "install", "searxng"], check=True, timeout=120) return True except Exception as e: print(f"❌ 安装失败: {e}")- Confidence
- 85% confidence
- Finding
- subprocess.run([pip_path, "install", "searxng"], check=True, timeout=120)
