import tensorflow出错

Tensorflow import 出现 FutureWarning错误

Win10 下Anaconda python3.5安装Tensorflow 1.4版本在载入Tensorflow时出现如下错误:
C:\Users\admin\AppData\Local\conda\conda\envs\python35\lib\site-packages\h5py__init__.py:36: 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.
from ._conv import register_converters as _register_converters

解决方法:
安装新版本的h5py:
pip install h5py==2.8.0rc1

参考:
https://stackoverflow.com/questions/48340392/futurewarning-conversion-of-the-second-argument-of-issubdtype-from-float-to

你可能感兴趣的:(import tensorflow出错)