tensorflow与numpy的版本兼容性问题的解决,版本,站长站,错误,文章,较高

tensorflow与numpy的版本兼容性问题的解决

易采站长站,站长之家为您整理了tensorflow与numpy的版本兼容性问题的解决的相关内容。

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

root@ubuntu:~# python3

Python 3.6.8 (default, Oct 7 2019, 12:59:55)

[GCC 8.3.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow as tf;

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516: 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)])

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:517: 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_quint8 = np.dtype([("quint8", np.uint8, 1)])

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:518: 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_qint16 = np.dtype([("qint16", np.int16, 1)])

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:519: 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_quint16 = np.dtype([("quint16", np.uint16, 1)])

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:520: 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_qint32 = np.dtype([("qint32", np.int32, 1)])

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:525: 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_resource = np.dtype([("resource", np.ubyte, 1)])

/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: 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)])

/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: 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_quint8 = np.dtype([("quint8", np.uint8, 1)])

/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: 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_qint16 = np.dtype([("qint16", np.int16, 1)])

/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: 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_quint16 = np.dtype([("quint16", np.uint16, 1)])

/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: 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_qint32 = np.dtype([("qint32", np.int32, 1)])

/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: 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_resource = np.dtype([("resource", np.ubyte, 1)])

我的错误原因是numpy的版本较高造成的,换成1.14.0版本后解决了

出错时的Numpy版本

root@ubuntu:~# pip3 show numpy

Name: numpy

Version: 1.17.3

Summary: NumPy is the fundamental package for array computing with Python.

Home-page: https://www.numpy.org

Author: Travis E. Oliphant et al.

Author-email: None

License: BSD

Location: /usr/local/lib/python3.6/dist-packages

Requires:

安装1.14.0的Numpy版本

root@ubuntu:~# pip3 install numpy==1.14.0

Collecting numpy==1.14.0

Downloading https://files.pythonhosted.org/packages/dc/ac/5c270dffb864f23315e9c1f9e0a0b300c797b3c170666c031c4de42aacae/numpy-1.14.0-cp36-cp36m-manylinux1_x86_64.whl (17.2MB)

100% |████████████████████████████████| 17.2MB 75kB/s

Installing collected packages: numpy

Successfully installed numpy-1.14.0

root@ubuntu:~# python3

Python 3.6.8 (default, Oct 7 2019, 12:59:55)

[GCC 8.3.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow as tf;

>>> tf.__version__

'1.14.0'

>>>

到此这篇关于tensorflow与numpy的版本兼容性问题的解决的文章就介绍到这了,更多相关tensorflow与numpy版本兼容性内容请搜索易采站长站以前的文章或继续浏览下面的相关文章希望大家以后多多支持易采站长站!以上就是关于对tensorflow与numpy的版本兼容性问题的解决的详细介绍。欢迎大家对tensorflow与numpy的版本兼容性问题的解决内容提出宝贵意见

tensorflow和python不兼容_tensorflow与numpy的版本兼容性问题的解决相关推荐

  1. tensorflow与numpy的版本兼容性问题(亲测)

    在Python交互式窗口导入tensorflow出现了下面的错误: Copy root@ubuntu:~# python3 Python 3.6.8 (default, Oct 7 2019, 12: ...

  2. ie8不兼容java项目_常见IE8兼容性问题及解决

    1.css3媒体查询 IE8不支持媒体查询 解决:respond.js,在页面中所有css文件的引用位置之后引用Respond.js 2.HTML5新标签 IE8不支持H5新标签 解决:html5sh ...

  3. android 蓝牙版本兼容,Android蓝牙4.0 版本兼容性问题

    在android 4.3以下的SDK中,由于各个厂商都是单独做的SDK,基本上开发出来的APP都互相不兼容,如何在android4.3以下及以上版本中做到兼容,将是以下要讲到的内容. 以samsung ...

  4. TensorFlow提供Python语言的四个不同版本tensorflow,tensorflow-gpu,tf-nightly、tf-nightly-gpu

    1.TensorFlow提供Python语言下的四个不同版本:CPU版本(tensorflow).包含GPU加速的版本(tensorflow-gpu),以及它们的每日编译版本(tf-nightly.t ...

  5. tensorflow适用于python版本_tensorflow用python哪个版本更好?

    tensorflow用python哪个版本? 一.安装anaconda tensorflow是基于python脚本语言的,因此需要安装python, 当然还需要安装numpy.scipy.six.ma ...

  6. TensorFlow常用Python扩展包

    TensorFlow常用Python扩展包 TensorFlow 能够实现大部分神经网络的功能.但是,这还是不够的.对于预处理任务.序列化甚至绘图任务,还需要更多的 Python 包. 下面列出了一些 ...

  7. python教程哪个版本好-tensorflow用python哪个版本更好?

    tensorflow用python哪个版本? 一.安装anaconda tensorflow是基于python脚本语言的,因此需要安装python, 当然还需要安装numpy.scipy.six.ma ...

  8. tensorflow2.0支持的python版本-TensorFlow 版本兼容性

    本文面向需要在不同版本的 TensorFlow 之间向后兼容(针对代码或者数据)的用户,以及想要修改 TensorFlow 并同时保持兼容性的开发者. 语义化版本控制 2.0 TensorFlow 的 ...

  9. tensorflow与python交互系列,tf.py_function()、tf.py_func、tf.numpy_function()(一)

    前言:前面在介绍使用tensorflow进行data pipeline的时候,遇到了一些问题,特意整理了两篇文章,请参见: tfrecord文件的map在使用的时候所踩的坑总结(map.py_func ...

最新文章

  1. fork() 成为负担,需要淘汰
  2. Create new Fiori catalog group via personalization
  3. ASP.NET Core 优雅的在开发环境保存机密(User Secrets)
  4. RocketMQ(七)——消息的消费
  5. java 正则 js_正则表达式在js和java中如何使用
  6. 自定义一个月份选择器插件
  7. 推荐21个顶级的Vue UI库!
  8. 河津市新世纪计算机学校元旦晚会,运城最好的职中排名
  9. jqueryui时间插件_jQueryUI菜单插件教程示例
  10. Linux基本命令总结(初学者可以借鉴学习)
  11. linux将分区从目录上卸载,Linux CentOS 硬盘分区、格式化、挂载与卸载
  12. fw136r虚拟服务器,Purley平台Redfish带外配置表
  13. java ssm框架项目_3个SSM框架应用实例教程
  14. NOI Online #2入门组
  15. 如何提升数据思维能力?
  16. 为什么我们要学操作系统?
  17. 原创 牛客网产品笔试题刷题打卡——用户研究
  18. 天池 入门赛-新闻文本分类-单个bert模型分数0.961
  19. trifecta_ui安装
  20. 基于遗传算法和模拟退火算法改进的混合模拟退火算法(解决求函数极值问题,MATLAB代码已实现)

热门文章

  1. 4.3 核对矩阵的维数-深度学习-Stanford吴恩达教授
  2. Android关于Theme.AppCompat相关问题的深入分析
  3. 【任务脚本】更新京东任务东东农场脚本,京东种水果脚本,京东活动任务半自动程序...
  4. 树莓派3B+功耗测试、初体验、图形化配置树莓派3B+配置方法。Raspberry Pi 3B+测评...
  5. 线程运行程序c语言,理解线程1 C语言示例的程序
  6. DAMS2019中国数据智能管理峰会将于7月在上海召开!
  7. 持续演进,克服“REST缺乏”
  8. 《Atlas基础教程》勘误(持续更新)
  9. 三维的对象表示---OpenGL二次曲面和三次曲面函数
  10. 【翻译】CodeMix使用教程(三):Emmet