TensorFlow library Not Found EVEN after TensorFlow is installed

Even if the tensorflow is installed, this error is persistent while running following codes
bert = TFAutoModel.from_pretrained(‘bert-base-cased’)
tfbert_model = TFBertModel.from_pretrained(“bert-base-uncased”)

What I have done so far…

  • Re-installed Anaconda

  • Updated the pip version

  • checked upgraded tensroflow version


Welcome to the Tensorflow Forum!

It seems like you are facing an issue with the transformers library in TensorFlow. You can try to upgrade the transformers library as shown below and let us know?

pip install --upgrade transformers

Thank you!

1 Like