MCPcopy Create free account
hub / github.com/ashfawk/oceanhazard-detection / check_python_version

Function check_python_version

setup_python.py:24–32  ·  view source on GitHub ↗

Check if Python version is compatible

()

Source from the content-addressed store, hash-verified

22 return False
23
24def check_python_version():
25 """Check if Python version is compatible"""
26 version = sys.version_info
27 if version.major < 3 or (version.major == 3 and version.minor < 8):
28 print("❌ Python 3.8 or higher is required")
29 print(f"Current version: {version.major}.{version.minor}.{version.micro}")
30 return False
31 print(f"✅ Python version {version.major}.{version.minor}.{version.micro} is compatible")
32 return True
33
34def install_requirements():
35 """Install Python requirements"""

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected