问题1:AttributeError: module ‘pandas’ has no attribute ‘core’
这里的pandas版本与tensorflow不兼容,可以通过重装pandas的方式解决:
卸载pandas ,大约1秒完成 pip uninstall pandas
重新安装pandas,大约9M,可能需要一点时间 pip install pandas
问题2:FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
安装完成以后,发现一个警告 FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
这只是一个警告,不影响使用,可以通过更改tensorflow的日志级别,控制这些信息不显示。 import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]="3"