'Can anyone give me a comprehensive guide to installing tensorflow-federated on M1 Mac?

i followed the instructions given by the official tf documentation, but i just cannot resolve the various problems encountered. Did anyone have the experience installing tff on m1 mac and can show me your overall process?

conda create -n federated python=3.8


conda activate federated

pip install --upgrade tensorflow_federated

everything seems to be fine according to the terminal output, however, after

import tensorflow_federated as tff

i got a RunTimeError:

RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support. You may be able work around this issue by building jaxlib from source.

how to resolve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source