猿问

导入tensorflow的时候报错

刚刚试着安装tensorflow,完全按照tf官网教的方式安装,采用的是Virtualenv安装方式,安装成功了,进入虚拟环境,导入tensorflow的时候报错,报错信息如下:

import tensorflow as tf

/Users/Jay/anaconda3/lib/python3.6/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

请问这是怎么回事?该怎么处理?请大神指教,谢谢!


杰哒哒
浏览 1642回答 2
2回答

pardon110

报错信息都告诉你了 np.floating`类型已经被废弃,使用float64.简单点讲,就是注意包的兼容性

慕粉1518273007

pip install numpy==1.13.0
随时随地看视频慕课网APP
我要回答