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 模块,未出现错误信息
参考: https://blog.csdn.net/kobe_academy/article/details/99706595