tensorflow与numpy版本不兼容如何解决

  介绍

tensorflow与numpy版本不兼容如何解决?相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

在Python交互式窗口导入tensorflow出现了下面的错误:

root@ubuntu: ~ #, python3    Python  3.6.8 (默认情况下,,Oct  7, 2019年,12:59:55),   [GCC  8.3.0],提醒linux   想Type “帮助”,,“copyright",,“credits",趁机“license" for  more 信息。   在祝辞祝辞,import  tensorflow  as  tf;/usr/local/lib/python3.6/dist-packages/tensorflow/python/框架/dtypes.py: 516:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_qint8  np.dtype ([(“qint8",, np.int8,, 1)))/usr/local/lib/python3.6/dist-packages/tensorflow/python/框架/dtypes.py: 517:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_quint8  np.dtype ([(“quint8",, np.uint8,, 1)))/usr/local/lib/python3.6/dist-packages/tensorflow/python/框架/dtypes.py: 518:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_qint16  np.dtype ([(“qint16",, np.int16,, 1)))/usr/local/lib/python3.6/dist-packages/tensorflow/python/框架/dtypes.py: 519:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_quint16  np.dtype ([(“quint16",, np.uint16,, 1)))/usr/local/lib/python3.6/dist-packages/tensorflow/python/框架/dtypes.py: 520:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_qint32  np.dtype ([(“qint32",, np.int32,, 1)))/usr/local/lib/python3.6/dist-packages/tensorflow/python/框架/dtypes.py: 525:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,np_resource  np.dtype ([(“resource",, np.ubyte,, 1)))/usr/local/lib/python3.6/dist-packages/tensorboard/兼容/tensorflow_stub/dtypes.py: 541:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_qint8  np.dtype ([(“qint8",, np.int8,, 1)))/usr/local/lib/python3.6/dist-packages/tensorboard/兼容/tensorflow_stub/dtypes.py: 542:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_quint8  np.dtype ([(“quint8",, np.uint8,, 1)))/usr/local/lib/python3.6/dist-packages/tensorboard/兼容/tensorflow_stub/dtypes.py: 543:, FutureWarning:, Passing (类型,,1),或是& # 39;1型# 39;,as  a  synonym  of  type  is 弃用;,拷贝a  future  version  of  numpy,, it  will  be  understood  as (类型,(1)),/,& # 39;类型# 39;(1)。=,,_np_qint16  np.dtype ([(“qint16",, np.int16,, 1)))   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

tensorflow与numpy版本不兼容如何解决