安装第二天import tensorflow 出现如下错误module ‘tensorflow‘ has no attribute ‘compat‘
tensor flow使用conda下安装
- 项目场景:
- 问题描述:
- 解决方案:
- 解决问题:
项目场景:
在安装完成后,使用import tensorflow产生错误 module ‘tensorflow‘ has no attribute ‘compat‘
问题描述:
这里描述项目中遇到的问题:
使用conda list查看,发现版本都一致,不存在其他博主提供的版本不一致问题
解决方案:
然后使用pip list查看,果然在conda下显示tensorflow-estimator显示2.0.0版本,但在pip list下 tensorflow-estimator和tensorboard显示2.2.2版本 于是使用
pip install tensorflow-estimator==2.0.0
pip install tensorboard==2.0.0
后续有其他程序不一致的问题都按上图进行重新安装
解决问题:
在python环境下使用tensorflow不再报错
安装第二天import tensorflow 出现如下错误module ‘tensorflow‘ has no attribute ‘compat‘相关推荐
- pycharm用import报错:AttributeError: module tensorflow(or other) has no attribut (import搜索路径顺序问题)
问题描述及解决: 非常简单的import tensorflow模块,但是无法使用模块中的add函数. 分析 说明import找到了tensorflow这个模块,否则会出现ModuleNotFoundE ...
- NVIDIA Jetson Xavier NX上导入tensorflow报错:AttributeError: module ‘wrapt‘ has no attribute ‘ObjectProxy‘
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 在Jetson Xavier NX上导入tensorflow报错:AttributeError: module 'wra ...
- Python提示错误 module 'request' has no attribute 'urlretrieve'
1.直接使用request.urlretrieve显示出这种错误,翻译为'模块'request'没有属性'urlretrieve'' 图1.代码 request.urlretrieve(img_url ...
- 安装 跨模态模型CLIP 或是遇到 AttributeError: module ‘clip‘ has no attribute ‘load‘
1.遇到 AttributeError: module 'clip' has no attribute 'load' 或是类似问题,是安装的CLIP 有问题 2.注意事项 不要直接"pip ...
- Import theano gives the AttributeError: module 'theano' has no attribute 'gof'
主要注意以下几点: 环境变量 安装包:libpython,mingw 加什么.theanorc.txt,不知道有用没,我是没用到,加了还报错. 参考:http://blog.csdn.net/qq_3 ...
- Tensorflow安装后,import时出现错误:ImportError: DLL load failed: 找不到指定的模块
Tensorflow安装后,import时出现错误:ImportError: DLL load failed: 找不到指定的模块 下载网上大神们准备好的编译支持cuda10的tensoflow-gpu ...
- Ubuntu16.04 安装 CUDA、CUDNN、OpenCV 并用 Anaconda 配置 Tensorflow 和 Caffe 详细过程
Ubuntu16.04 安装 CUDA.CUDNN.OpenCV 并用 Anaconda 配置 Tensorflow 和 Caffe 详细过程 1.配置环境 Ubuntu16.04 64-bit系统 ...
- AttributeError: module ‘tensorflow‘ has no attribute ‘Session‘错误解决
AttributeError: module 'tensorflow' has no attribute 'Session'错误解决 根据网上教程安装tensorflow环境时,最后都会有个测试代码用 ...
- AttributeError: module 'tensorflow' has no attribute 'Session'错误解决
Ubuntu刚安装好Tensorflow以后运行 import tensorflow as tf tf.Session() 报错AttributeError: module 'tensorflow' ...
最新文章
- android 添加子view,Android基于Window.ID_ANDROID_CONTENT给定id添加子View
- jQuery使用ajaxStart()和ajaxStop()方法
- html2canvas图片不能正常截取,html2canvas关于图片不能正常截取
- pandas处理大数据的一些小技巧
- java list集合增删改_Java中集合类list的增删改查
- JDBC编程可能遇到的错误:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or ..
- PHP学习之六:预定义常量
- 我的PGA我作主----搞清楚什么是真正的PGA
- linux--kubectl命令和docker命令
- ubuntu 12.04 修改 grub 启动参数
- 计算机基础应用课件,大学计算机基础应用课件
- 吉林大学前卫南区计算机宿舍,睡过双一流学生宿舍后,把宿舍照片分享给你们,看看你们想去的学校宿舍长啥样!...
- 苹果怎么换字体_苹果手机电池不行了怎么办,换什么牌子好?
- 愿得一人心——祭奠······埋葬我218的爱情
- 乌镇时间到,创宇云端安全治理体系即将亮相世界互联网大会
- 拉格朗日插值和埃尔米特插值
- 定时器中断实验和PWM输出实验(寄存器)
- 爱心信封打开ui动画特效
- 常用服务默认用户名字典
- 本地pytorch代码迁移至华为云ModelArts平台训练
热门文章
- 985毕业的“搬砖人”,从“挂科废材”到程序员,这样的意外崛起,他到底经历了什么?
- 【C素数】素数(质数)和分解质因数
- 数据中心交钥匙项目部署仍面临挑战
- 【记录】RS-232串口通信个人理解
- 2019美国数学建模B题翻译:Problem B: Send in the Drones: Developing an Aerial Disaster Relief Response System
- 为什么dao层和service层要用接口?
- <C语言>如何使用C语言代码打印“心形”图案?
- Linux 查看日历
- 11微服务认证与授权
- replication factor: 3 larger than available brokers: 1