ImportError: cannot import name dataclass_transform
pip install --upgrade pydantic dataclasses
pip uninstall pydantic dataclasses
pip install pydantic dataclasses
pip install typing-extensions --upgrade
将typing-extensions版本改为4.4.0(报错版本是4.5.0)
pip install typing_extensions==4.4.0