Keep getting errorImportError: cannot import name 'validate_core_schema' from 'pydantic_core' when run python app.py
Windows 10.
File "C:\Users\Nina\anaconda3\Lib\site-packages\fastapi\exceptions.py", line 3, in <module> from pydantic import BaseModel, create_model File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\__init__.py", line 372, in __getattr__ module = import_module(module_name, package=package) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Nina\anaconda3\Lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\main.py", line 15, in <module> from ._internal import ( File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\_internal\_decorators.py", line 15, in <module> from ._core_utils import get_type_ref File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\_internal\_core_utils.py", line 15, in <module> from pydantic_core import validate_core_schema as _validate_core_schema ImportError: cannot import name 'validate_core_schema' from 'pydantic_core' (C:\Users\Nina\anaconda3\Lib\site-packages\pydantic_core\__init__.py)
Keep getting error
ImportError: cannot import name 'validate_core_schema' from 'pydantic_core'
when runpython app.py
Windows 10.
File "C:\Users\Nina\anaconda3\Lib\site-packages\fastapi\exceptions.py", line 3, in <module> from pydantic import BaseModel, create_model File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\__init__.py", line 372, in __getattr__ module = import_module(module_name, package=package) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Nina\anaconda3\Lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\main.py", line 15, in <module> from ._internal import ( File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\_internal\_decorators.py", line 15, in <module> from ._core_utils import get_type_ref File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\_internal\_core_utils.py", line 15, in <module> from pydantic_core import validate_core_schema as _validate_core_schema ImportError: cannot import name 'validate_core_schema' from 'pydantic_core' (C:\Users\Nina\anaconda3\Lib\site-packages\pydantic_core\__init__.py)