subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: from openai import OpenAI except ImportError: subprocess.run([sys.executable, "-m", "pip", "install", "--break-system-packages", "-q", "openai"], check=True) from openai import OpenAI client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))- Confidence
- 88% confidence
- Finding
- subprocess.run([sys.executable, "-m", "pip", "install", "--break-system-packages", "-q", "openai"], check=True)
