diff --git a/pyproject.toml b/pyproject.toml index c3f119fb..26731be5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,8 +25,9 @@ dependencies = [ "numpy", "scikit-image", "scikit-learn", - "tensorflow-macos>=2.5.0; platform_system=='Darwin' and platform_machine=='arm64'", - "tensorflow>=2.5.0; platform_system!='Darwin' or platform_machine!='arm64'", + # See https://github.com/brainglobe/cellfinder-core/issues/103 for < 2.12.0 pin + "tensorflow-macos>=2.5.0,<2.12.0; platform_system=='Darwin' and platform_machine=='arm64'", + "tensorflow>=2.5.0,<2.12.0; platform_system!='Darwin' or platform_machine!='arm64'", "tifffile", "tqdm", ]