本机:ubuntu-16+python+pycharm
在安装配置caffe时,操作失误导致原来安装的TensorFlow不能用了.于是删除原文件,重新安装了TensorFlow,安装后TensorFlow能用,但是一直报如下错误:
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
多方查找后,找到了解决办法:
pip install numpy==1.13.0
尝试后,问题解决.
据大牛解释,这是h5py包内由NumPy 1.14引起的问题,可以无视;解决方法是把NumPy降级到以前的版本即NumPy 1.13.