pip install pandas_profiling -i https://pypi.douban.com/simple 如果出现失败,重新运行一次即可,他会自动匹配到正确的包帮你卸载并安装正确的版本
pip install pandas_profiling -i https://pypi.douban.com/simple
prf = pandas_profiling.ProfileReport(Train_data) prf.to_file('./shujubaogao.html')