I was getting the same error while installing The transformers Library From hugginface, Specifically while installing flax and tensor flow
i Found a Solution To my problem, Leaving it here in case Anyone Else gets Stuck on this.
pip install 'transformers[tf-cpu]'
pip install 'transformers[flax]' (these commands are given on hugginface transformers installation page)
i tried multiple things but nothing i saw on the internet Worked.
then out of Frustration i installed Flax and TF(Tensor-Flow) like normal commands inside a virtual python Env,
pip install tf
pip install flax
and they Worked.
maybe this will help someone.