TensorFlow KeyError: "Couldn't find field google.protobuf.DescriptorProto.ExtensionRange.options"
来源:互联网 发布:网络摄像头修改密码 编辑:程序博客网 时间:2024/06/11 19:32
目录
- 问题描述
- 解决办法
- 参考资料
问题描述
- python 版本3.5
- macbook在用pip安装tensorflow后由于某些原因用pip又卸载了,然后再次pip install tensorflow,tensorflow安装成功
此时import tensorflow时报错:
KeyError: “Couldn’t find field google.protobuf.DescriptorProto.ExtensionRange.options”
如下图:
解决办法
pip uninstall protobufpip install protobuf==3.3.0
两行代码重装protobuf,问题解决
推测是在卸载tensorflow时使得protobuf组件缺失,导致报错
参考资料
https://github.com/tensorflow/tensorflow/issues/12326
阅读全文
0 0
- TensorFlow KeyError: "Couldn't find field google.protobuf.DescriptorProto.ExtensionRange.options"
- tensorflow安装正确, import tf, the problem is "Couldn't find field google.protob.ExtensionRange.options"
- return _message.default_pool.FindFieldByName(full_name) KeyError: "Couldn't find field google.pr
- KeyError: "Couldn't get user id for user hue" #27
- couldn‘t find design note
- Couldn’t find MySQL server
- couldn't find "libyuv.so
- couldn't find "libvinit.so"
- couldn't find native method
- couldn't find "libweibosdkcore.so"
- couldn't find "libgnustl_shared.so"
- couldn't find "libxxx.so"
- Compiling ArcEMU --- Couldn’t find pcre library
- Couldn’t find device with uuid ‘xxxxxxxxxxxxx’
- E: Couldn't find package lib32z-dev
- E: Couldn't find package proftpd
- 备忘:tcpdump: Couldn't find user 'tcpdump'
- AIDL couldn't find import for class
- 【数论】[NOIP2014]螺旋矩阵
- 我的第一篇博客(好紧张)
- Android7.0RecyclerView用法解析
- 为开发者赋能,阿里云大学人才培养再次升级
- 从零开始学Scala(一)——Scala环境搭建与第一行代码
- TensorFlow KeyError: "Couldn't find field google.protobuf.DescriptorProto.ExtensionRange.options"
- java动态代理实现
- 访问https webservice总结
- Android性能优化工具之Debug GPU Overdraw
- Struts中ModelDriven的使用
- IDEA中Lifecycle下命令详解
- 从表单价和数量引发主表的总价变化
- 单件模式使用小技巧
- Linux内核,container_of 宏