Sorry for the late reply,.
You might try to uninstall the package first by using the pip uninstall --user pandas_profiling
Sorry for the late reply,. It is probably error caused by an incomplete set of code form the source.
You might try to uninstall the package first by using the pip uninstall --user pandas_profiling
then try to download the package from the source. pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip
Hope it work