'module' object has no attribute 'keras'问题解决方法
2019-03-23 07:00
1181 查看
-多次安装tensorflow时出现同一,加以记录备忘,并希望帮到同样在奋斗的你。
安装tensorflow并进行如下测试:
[code]python object_detection/builders/model_builder_test.py
出现如下问题:
[code]Traceback (most recent call last): File "object_detection/builders/model_builder_test.py", line 23, in <module> from object_detection.builders import model_builder File "/home/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/builders/model_builder.py", line 22, in <module> from object_detection.builders import box_predictor_builder File "/home/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/builders/box_predictor_builder.py", line 21, in <module> from object_detection.predictors import convolutional_box_predictor File "/home/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/predictors/convolutional_box_predictor.py", line 19, in <module> from object_detection.core import box_predictor File "/home/farzad/Desktop/jrnl/face recognition/tensorflow/models/research/object_detection/core/box_predictor.py", line 137, in <module> class KerasBoxPredictor(tf.keras.Model): AttributeError: 'module' object has no attribute 'keras'
可能是由于tensorflow版本问题导致的,需要升级tensorflow
[code]pip install -U tensorflow
即可解决问题!
成功进入下一个问题的解决阶段!开心(并不
相关文章推荐
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- Keras深度学习框架学习笔记(3) - AttributeError:’module’ object has no attribute ‘ifelse’错误信息的解决方法
- 关于python里运行出现'module' object has no attribute 'xxxx'等问题解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- GNU Radio自定义模块在添加到流图后运行报‘module’ object has no attribute错误的解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’get’解决方法
- 解决问题 AttributeError: 'module' object has no attribute 'face_recognition_model_v1'
- Django报错:AttributeError: 'module' object has no attribute 的解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- AttributeError: 'module' object has no attribute 的解决方法
- AttributeError: 'module' object has no attribute 'Frame' 解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- import json后,报错:AttributeError: 'module' object has no attribute 'dumps,原因分析及解决方法
- AttributeError: 'module' object has no attribute 的解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- yum错误'module' object has no attribute 'iterparse'解决方法