如何在亚马逊深度学习AMI中导入tensorflow时解决RuntimeWarning和FutureWarning?

时间:2018-02-20 10:40:36

标签: python ubuntu tensorflow amazon-ec2 anaconda

当我在python中导入tensorflow时,我每次都会收到这些警告。有人可以帮助我解决它们吗?

/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)
/home/ubuntu/anaconda3/envs/tensorflow_p36/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

我在最新的亚马逊深度学习AMI中运行Ubuntu OS。

1 个答案:

答案 0 :(得分:1)

您可以尝试Tensorflow 1.12随附的最新dlami v20.0,该警告在那里消失。