As per huggingface/transformers#8638, the solution for now is: ```bash pip uninstall dataclasses -y ```