subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
except ImportError: print("Required packages not found. Installing pandas and openpyxl...") import subprocess subprocess.check_call([sys.executable, "-m", "pip", "install", "pandas", "openpyxl", "-q"]) import pandas as pd from openpyxl import Workbook from openpyxl.styles import Font, PatternFill, Alignment, Border, Side- Confidence
- 94% confidence
- Finding
- subprocess.check_call([sys.executable, "-m", "pip", "install", "pandas", "openpyxl", "-q"])
