Dependency Conflict- Tensorflow CUDA

Hi, trying to use cuda with the flower simulation, i get the following error, the setup was done with conda. Is there a fix to this

ERROR- ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
flwr 1.15.2 requires protobuf<5.0.0,>=4.21.6, but you have protobuf 3.19.6 which is incompatible.

TF specs and project dependencies-

Tensorflow-2.10, CUDAtoolkit-11.2, CUDDNN-8.1.0

pyproject.toml Dependencies-

dependencies = [
“flwr[simulation]>=1.15.2”,
“flwr-datasets[vision]>=0.5.0”,
“tensorflow-cpu>=2.9.1, != 2.11.1 ; platform_machine == "x86_64"”,
“tensorflow-macos>=2.9.1, != 2.11.1 ; sys_platform == "darwin" and platform_machine == "arm64"”,
“wandb==0.17.8”,
]

1 Like