diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..22e020cc --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +pandas +numpy +scipy diff --git a/simulasyon_11.py b/simulasyon_11.py index 91852c1f..39533b39 100644 --- a/simulasyon_11.py +++ b/simulasyon_11.py @@ -2,17 +2,9 @@ import datetime import time import sys -import pandas as pd -import numpy as np import random -from scipy import stats from datetime import timedelta, date -# ============================================================================== -# SIMULE3: V.135 - OMEGA VERIFICATION ARCHIVE (PROVEN FULL VERSION) -# STATUS: NameError Fixed. All Scientific Proof Modules Added. -# ============================================================================== - # --- VISUAL INTERFACE COLORS --- class Colors: HEADER = '\033[95m' @@ -27,6 +19,25 @@ class Colors: GOLD = '\033[33m' PURPLE = '\033[35m' +try: + import pandas as pd + import numpy as np + from scipy import stats +except ImportError: + print(f"\n{Colors.FAIL}{Colors.BOLD}MISSING DEPENDENCIES ERROR{Colors.ENDC}") + print(f"{Colors.FAIL}--------------------------------------------------{Colors.ENDC}") + print(f"It looks like some required libraries are missing.") + print(f"The simulation needs {Colors.BOLD}pandas{Colors.ENDC}, {Colors.BOLD}numpy{Colors.ENDC}, and {Colors.BOLD}scipy{Colors.ENDC} to run.\n") + print(f"{Colors.CYAN}To install them, run this command in your terminal:{Colors.ENDC}") + print(f"{Colors.BOLD}pip install -r requirements.txt{Colors.ENDC}") + print(f"\n{Colors.FAIL}--------------------------------------------------{Colors.ENDC}\n") + sys.exit(1) + +# ============================================================================== +# SIMULE3: V.135 - OMEGA VERIFICATION ARCHIVE (PROVEN FULL VERSION) +# STATUS: NameError Fixed. All Scientific Proof Modules Added. +# ============================================================================== + def loading_bar(desc): print(f"{Colors.CYAN}{desc}...{Colors.ENDC}") time.sleep(0.01)