INNER CODE UNIT · Python
check_dependencies
Nain57/Smart-AutoClicker · scripts/ocr-models/dependency_checker.py:70
def check_dependencies(requirements_path: str = REQ_PATH):
"""
Verify all required packages are importable.
"""
try:
required = parse_requirements(requirements_path)
except FileNotFoundError:
print(f"[ERROR] requirements file not found: {requirements_path}")
sys.exit(1)
missing = []
for pkg in required:
pkg_lower = pkg.lower()
if pkg_lower in CLI_ONLY_PACKAGES:
if shutil.which(pkg_lower) is None: