解决 FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is d

问题:在执行import tensorflow的时候报出如下错误:

在这里插入图片描述
D:\Anaconda\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype fromfloattonp.floatingis deprecated. In future, it will be treated asnp.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters

从错误中可以看错是h5py包问题,初步判断是h5py包版本太低问题,于是考虑升级h5py包:

pip install --upgrade h5py

升级之后问题解决:

解决 FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is d_第1张图片

你可能感兴趣的:(Python)