diff --git a/requirements.txt b/requirements.txt index b007bb5f72..09fdde2418 100644 --- a/requirements.txt +++ b/requirements.txt @@ -28,3 +28,6 @@ tables torch==2.7.1 torchvision tqdm + +# Platform-specific +h5py>=3.15.1; sys_platform == "darwin" # Fixes https://github.com/h5py/h5py/issues/2726 diff --git a/setup.py b/setup.py index cf8721edb9..0c99c8d101 100644 --- a/setup.py +++ b/setup.py @@ -79,6 +79,7 @@ def pytorch_config_paths() -> list[str]: "pyyaml", "Pillow>=7.1", "tables", + "h5py>=3.15.1;sys_platform=='darwin'", ], extras_require={ "gui": [