>>> import tensorflow as tf
>>> from transformers import AutoTokenizer
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
>>> from transformers import TFBertModel
>>> model = TFBertModel.from_pretrained("bert-base-cased")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/shawon/PyVenvs/tf_macos/lib/python3.8/site-packages/transformers/utils/dummy_tf_objects.py", line 351, in from_pretrained
requires_tf(self)
File "/Users/shawon/PyVenvs/tf_macos/lib/python3.8/site-packages/transformers/file_utils.py", line 443, in requires_tf
raise ImportError(TENSORFLOW_IMPORT_ERROR.format(name))
ImportError:
TFBertModel requires the TensorFlow library but it was not found in your environment. Checkout the instructions on the
installation page: https://www.tensorflow.org/install and follow the ones that match your environment.
This is the error I'm getting: