TensorFlow报错FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated

  使用tensorFlow时报错FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy…
  报错原因主要是环境安装的numpy1-17-0版本过高,使用numpy-1.16-0版本即可,解决方法:重新安装numpy-1.16-0,命令行如下:

pip install numpy==1.16.0

参考文献
[1]tensflow报错原因

你可能感兴趣的:(报错专栏,tensorflow,python)