【TensorFlow】numpy版本过高输出错误信息

numpy版本过高输出错误信息

错误描述:

执行

python

导入tensorflow 模块 

import tensorflow as tf

输出错误信息:

FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;
in a future version of numpy, 
it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)])

错误原因:安装numpy的版本过高

解决方法:安装低版本的numpy

pip install -U numpy==1.16.0

【TensorFlow】numpy版本过高输出错误信息_第1张图片

再次,导入tensorflow 模块,未出现错误信息

参考: https://blog.csdn.net/kobe_academy/article/details/99706595

你可能感兴趣的:(#,TensorFlow,2,TensorFlow)