当前位置: 首页 > news >正文

【tensorflow2.6.0 一系列相关报错记录】

tensorflow2.6.0出现的一些列报错记录

(1)tensorflow出现的numpy报错

ImportError: this version of pandas is incompatible with numpy < 1.20.3
your numpy version is 1.19.5.
Please upgrade numpy to >= 1.20.3 to use this pandas version

pip install --upgrade numpy

更新后出现报错(2)

(2)更新numpy后又出现的报错

AttributeError: module ‘numpy’ has no attribute ‘object’.
np.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
出现这个问题重新安装numpy1.19.5,又出现下面报错(3)
尝试修改
File ~\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\framework\dtypes.py:585,将np.object替换为object
在这里插入图片描述
AttributeError: module ‘numpy’ has no attribute ‘bool’.
np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
ImportError: cannot import name ‘dtensor’ from ‘tensorflow.compat.v2.experimental’

(3)安装修改完成后又出现的报错

ImportError: Matplotlib requires numpy>=1.20; you have 1.19.5

(4)改了半天还是出现奇怪的报错(终极解决办法)

首先删除C:\Users\songlin\AppData\Roaming\Python\Python38\site-packages\tensorflow这个文件夹,重新安装tensorflow

pip install --upgrade tensorflow

旧环境配置

conda info --envs | grep songlin_temp
pip list | grep -E "tensorflow|numpy|pandas|matplotlib"

记录之前配置过的环境
在这里插入图片描述

http://www.dtcms.com/a/266012.html

相关文章:

  • 踩坑日记:虚拟机桥接模式无法连接网卡
  • Intellij IDEA中Maven的使用
  • 学习C++、QT---17(C++ 记事本项目的雏形实现)
  • 深度学习1(深度学习和机器学习的区别,神经网络)
  • JNI实现Android音视频播放器的设计方案
  • 万字长文 探索 AI 智能体:架构设计与实际应用
  • Compose 常用命令详解——AI教你学Docker
  • Spring Cloud(微服务部署与监控)
  • P1073 [NOIP 2009 提高组] 最优贸易
  • qiankun - 微前端
  • 从0开始学习R语言--Day37--CMH检验
  • 基于InVEST模型生境质量评估、基于SoLVES社会价值评估、耦合度分析
  • 二位差分矩阵
  • L2CAP协议详解:分段重组、QoS控制与多协议复用设计(面试宝典)
  • SpringBoot论坛系统安全测试实战报告
  • 深入理解 Redis Cluster:分片、主从与脑裂
  • 轮椅租赁小程序开发源码php
  • 4-6WPS JS宏自定义函数变长参数函数(实例:自定义多功能数据统计函数)学习笔记
  • 【进阶篇-消息队列】——Kafka如何实现事务的
  • 贪心专题练习
  • 伞兵 钓鱼的肝
  • 【系统如何知道每个软件该去哪个源下载】
  • spring6合集——spring概述以及OCP、DIP、IOC原则
  • 大模型解码策略(Top-k Top-p Temperature)
  • 【前端开发】Uniapp分页器:新增输入框跳转功能
  • uniapp加上全局水印
  • 【如何判断Linux系统是Ubuntu还是CentOS】
  • 【Laravel】 Laravel 智能验证规则生成器
  • Java操作word实战
  • LiteHub中间件之跨域访问CORS