问题:在执行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
升级之后问题解决:

本文解决了一个在导入TensorFlow时遇到的错误,该错误源于h5py包版本过低。通过升级h5py包,成功解决了问题。
1万+





