解决import tensorflow时,h5py的FutureWarning问题

当引入import tensorflow as tf 时,会出现这个警告: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
 

 

解决的办法:先把numpy更新,再把h5py更新。

更新命令:pip install --upgrade numpy  

                  pip install --upgrade h5py

你可能感兴趣的:(tensorflow)