when importing pandas_profiling error `pydantic-settings`

109 views Asked by At

from pandas_profiling import ProfileReport error pydantic-settings

raise PydanticImportError(f'{import_path} has been removed in V2.')

PydanticImportError: BaseSettings has been moved to the pydantic-settings package. See https://docs.pydantic.dev/2.6/migration/#basesettings-has-moved-to-pydantic-settings for more details.

i try everything but nothing work

!pip install -U pandas-profiling

import sys !{sys.executable} -m pip install pandas-profiling from pandas_profiling import ProfileReport

1

There are 1 answers

1
刘子杰 On

the name of this package has been changed. u need to reinstall "pip install ydata-profiling", and "from ydata_profiling import ProfileReport"