import sys
import subprocess

print("Starting custom cPanel Pip Installation...")

try:
    # Use the current virtual environment's pip to install the requirements
    subprocess.check_call([sys.executable, "-m", "pip", "install", "flask", "requests"])
    print("\nSUCCESS! Flask and Requests have been successfully installed!")
except Exception as e:
    print(f"\nFAILED to install: {e}")
