Unable to load the transformer.trainer

Imports: from transformers import TrainingArguments,DataCollatorForSeq2Seq

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from datasets import load_dataset,load_from_disk
from transformers import Trainer
import torch

AttributeError Traceback (most recent call last) File [c:\conda\Lib\site-packages\transformers\utils\import_utils.py:1099](file:///C:/conda/Lib/site-packages/transformers/utils/import_utils.py:1099), in _LazyModule.get_module(self, module_name) 1098 try: → 1099 return importlib.import_module(“.” + module_name, self.name) 1100 except Exception as e: File [c:\conda\Lib\importlib_init.py:126](file:///C:/conda/Lib/importlib/init.py:126), in import_module(name, package) 125 level += 1 → 126 return _bootstrap._gcd_import(name[level:], package, level) File :1204, in _gcd_import(name, package, level) File :1176, in find_and_load(name, import) File :1147, in find_and_load_unlocked(name, import) File :690, in _load_unlocked(spec) File :940, in exec_module(self, module) File :241, in _call_with_frames_removed(f, *args, **kwds) File [c:\conda\Lib\site-packages\transformers\trainer.py:63](file:///C:/conda/Lib/site-packages/transformers/trainer.py:63) 62 from .modelcard import TrainingSummary

1103 f" traceback):\n{e}" 1104 ) from e RuntimeError: Failed to import transformers.trainer because of the following error (look up to see its traceback): module ‘tensorflow’ has no attribute ‘io’

Main Error: f" traceback):\n{e}" 1104 ) from e RuntimeError: Failed to import transformers.trainer because of the following error (look up to see its traceback): module ‘tensorflow’ has no attribute ‘io’