踩坑场景

报错FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate;

解决办法

1.升级numpy的版本

pip uninstall numpy
pip install numpy==1.16.4

2.将报错的部分修改

若升级numpy的版本无效,则将将np.dtype([("quint8", np.uint8, 1)])
修改为np.dtype([("quint8", np.uint8, (1,))]),建议用修改后的写法

np.dtype([("quint8", np.uint8, (1,))])

我一开始试过第一种方法,一开始是可以解决这个报错的,但有一次在别的电脑也尝试第一种方法的时候,解决不了,然后我将np.dtype([("quint8", np.uint8, 1)])修改为np.dtype([("quint8", np.uint8, (1,))])后,发现这个报错解决了。两种方法都可以尝试一下。

转载于:https://www.cnblogs.com/windowsxpxp/p/11527073.html

FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate;的解决办法相关推荐

  1. 解决python调用TensorFlow时出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate

    最近因为要做一个基于深度学习的人脸识别项目,要用到TensorFlow,但是下载完成后后发现import tensorflow总是出现FutureWarning: Passing (type, 1) ...

  2. 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 ...

  3. 运行keras出现 FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated解决办法

    运行keras出现 FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a futur ...

  4. python调用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; ...

  5. FutureWarning: Passing (type 1) or 1type as a synonym of type is deprecated in a future vers 的解决

    使用tensorflow时遇到以下警告信息,虽然不影响使用,但是看着不爽.具体解决办法如下. 警告信息: FutureWarning: Passing (type, 1) or '1type' as ...

  6. dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a

    dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a ...

  7. dtypes.py报错FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated;

    tensorflow 版本1.2.0 报错:D:\Anaconda3\envs\tfn\lib\site-packages\tensorflow\python\framework\dtypes.py: ...

  8. 解决import tensorflow时的报错 Passing (type, 1) or ‘1type‘ as a synonym of type is deprecate

    问题 在Pycharm中运行import tensorflow as tf时报错. 解决方案 此时点开报错中的dtypes.py文件,对其进行修改. 从# hard-coding of names.这 ...

  9. Python:设置不显示Using TensorFlow backend及FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of typ

    Python:设置不显示Using TensorFlow backend及FutureWarning: Passing type, 1 or '1type' as a synonym of type ...

  10. anaconda调用TensorFlow出现dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of typ

    在anaconda  prompt调用TensorFlow,出现D:\anaconda\lib\site-packages\tensorflow\python\framework\dtypes.py: ...

最新文章

  1. 生产异常反馈流程图_企业生产现场管理做到这些,想不成功都难
  2. Oracle-01033错误处理
  3. 零基础学Python(第五章 运算符)
  4. java解析xml转为Map
  5. 即日起,正式进入编程世界!
  6. winform php 交互,WinForm开发,窗体显示和窗体传值
  7. php 伪静态规则,在线将Apache Rewrite Rules伪静态规则转换为Nginx Rewrite伪静态规则...
  8. 干货满满!全面详解如何用递归解题!
  9. 2018百度之星初赛B轮 p1m2
  10. 蓝桥杯-天干地支问题
  11. redis数据类型之List入门练习
  12. Kotlin学习笔记 —— 函数,字符串,可空性以及标准库函数(2)
  13. HTML页面分享微博、QQ、微信功能
  14. 读书笔记之《梁宁增长思维30讲》
  15. Qt高质量的开源项目合集
  16. 【论文阅读】强化学习与知识图谱关系路径发现
  17. win10总显示打印机未连接服务器,win10安装打印机一直未响应。。。
  18. 什么是依赖注入,vue的依赖注入如何实现的
  19. wechat4j开发-菜单创建
  20. 凝心聚力,不负好时光——慧慧兔团建拓展之旅

热门文章

  1. 对称矩阵特征向量正交的推导
  2. 【073】首届工控中国大会|翼辉为自主生态共建发声
  3. 软件测试周刊(第30期):专注 力量 敏捷 协作
  4. 《富爸爸穷爸爸》读书笔记
  5. 幼师资格证综合素质计算机知识点,教师资格证 | 综合素质基本能力13个必备知识点...
  6. 中国移动数据分析的七点经验
  7. [javascript] Box2D JS初探(一个控制小球的游戏例子)。学习用!
  8. 引入ant组件分页时显示英文问题
  9. 搜索计算机文件夹的记录怎么删除,Win7如何删除“我的电脑”搜索栏里面的搜索记录...
  10. win10文件资源管理器保存搜索记录的操作办法