mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 17:31:16 +08:00
10 lines
303 B
Python
10 lines
303 B
Python
import platform
|
|
|
|
if platform.system() == "Darwin":
|
|
version = tuple(map(int, platform.mac_ver()[0].split(".")))
|
|
major, minor = version[0], version[1]
|
|
if (major, minor) < (13, 5):
|
|
raise ImportError(
|
|
f"Only macOS 13.5 and newer are supported, not {major}.{minor}"
|
|
)
|