新人tensorflow2.1版本导致程序我无法运行最简单的办法

法1 tensorflow.compat.v1

import tensorflow.compat..v1 as tf
tf.disable_v2_behavior()

亲测不好用

法2 卸载2.1,安装老版本

在Terminal界面输入

pip uninstall tensorflow

接着输入Y确定卸载。

安装tensorflow旧版本


右下角Specify version选版本

AttributeError: module 'tensorflow' has no attribute 'placeholder'等一系列tensorflow版本导致的问题相关推荐

  1. AttributeError: module 'tensorflow' has no attribute 'placeholder'

    AttributeError: module 'tensorflow' has no attribute 'placeholder' 在使用TensorFlow时,定义一个占位符,出现错误 Attri ...

  2. 问题解决——AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    问题解决--AttributeError: module 'tensorflow' has no attribute 'placeholder' 参考文章: (1)问题解决--AttributeErr ...

  3. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 T1.降低tensor ...

  4. 成功解决AttributeError: module tensorflow has no attribute placeholder

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 解决问题 Attrib ...

  5. keras module 'tensorflow' has no attribute 'placeholder'

    keras module 'tensorflow' has no attribute 'placeholder' pip install tensorflow-gpu==1.13.1 keras=2. ...

  6. NVIDIA Jetson Xavier NX上导入tensorflow报错:AttributeError: module ‘wrapt‘ has no attribute ‘ObjectProxy‘

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 在Jetson Xavier NX上导入tensorflow报错:AttributeError: module 'wra ...

  7. Tensorflow报错:AttributeError: 'module' object has no attribute 'scalar_summary'

    报错: tf.scalar_summary(l.op.name + ' (raw)', l) AttributeError: 'module' object has no attribute 'sca ...

  8. 【pycharm】pycharm上安装tensorflow,报错:AttributeError: module ‘pip‘ has no attribute ‘main‘ 解决方法

    [pycharm]pycharm上安装tensorflow,报错:AttributeError: module 'pip' has no attribute 'main' 解决方法 参考文章: (1) ...

  9. tensorflow出现如下错误:AttributeError: ‘module’ object has no attribute ‘merge_all_summaries’

    tensorflow版本问题,导致函数的变化,summary使用如下变化机制: AttributeError: 'module' object has no attribute 'merge_all_ ...

最新文章

  1. ecshop管理找不到index.php,前台出现找不到这样的目录,打不开某文件的提示
  2. 数据库 sqlite top写法
  3. SAP一句话入门:Human Resource
  4. MySQL BlackHole 存储引擎使用
  5. 《OpenGL ES 2.0游戏开发(上卷):基础技术和典型案例》——6.5节光照的每顶点计算与每片元计算...
  6. 可编程led灯带原理_SCPSD-250-04-27派克真空压力传感器故障和工作原理
  7. 张正友标定Opencv实现、标定流程以及图像坐标转为世界坐标
  8. matlab6.1实用指南,MATLAB 6.1实用指南
  9. CSS 文本装饰 text-decoration属性
  10. tp5 分页php不能foreach,tp5框架无刷新分页实现方法分析
  11. 首届全国信创大赛圆满收官,信创新势力载誉而归!
  12. 计算机组成原理中计算机主要包括哪几部分,计算机组成原理本科生期末试卷(五)部分答案详解...
  13. linux awk数组使用
  14. 【js高三】---js模块模式
  15. 快点来学吧!Spring事务是如何传播的?快来收藏!
  16. 使用markdown写大论文
  17. 超实用的桌面收纳盒!
  18. AI 成野生动物保护神:没有图像识别算法,考拉可能灭绝!
  19. Python小白自问自答
  20. 【小米路由器3】breed刷机救砖-nand flash硬改SPI flash-编程器救砖(解决ttl无法救砖问题)

热门文章

  1. 报错java.lang.NoClassDefFoundError: ognl/DefaultMemberAccess
  2. Linux 命令之 chfn -- 修改用户信息
  3. HH SaaS电商系统的商品发货策略设计
  4. HH SaaS电商系统的品牌模块设计
  5. 学维修电脑要多久_学厨师要多久才出师
  6. Numpy的切片操作
  7. oracle11g支持xp吗_拔掉U盘前一定需要安全弹出吗?
  8. java左上角图标太小_Eclipse在高分屏下图标过小的解决方法
  9. python的智能算法_scikit-opt——Python中的群体智能优化算法库
  10. oracle vm 环境支持,使用 Oracle VM 模板快速部署 Oracle RAC 环境