[英]KeyError: “Couldn't find field google.protobuf.DescriptorProto.ExtensionRange.options”
[英]Error Tensorflow Couldn't find field google.protobuf.EnumDescriptorProto.EnumReservedRange.start
嗨,我正在尝试在我的计算机上运行tensorflow应用程序。 我使用pip安装了tf并按照tensorflows文档中的步骤进行操作。
我在ubuntu 17.10中使用python 3.6.3
KeyError: "Couldn't find field google.protobuf.EnumDescriptorProto.EnumReservedRange.start"
TKS
当我尝试在Mac上使用TensorFlow和Anaconda而不是Python 2.7时,我收到此错误。 要查看您是否使用Anaconda,请使用which命令:
哪个python
- /用户/我/ anaconda2 /斌/蟒蛇
如果这导致您的问题,解决方案是在虚拟环境中安装Tensorflow:
export PATH = / usr / local / bin:/ usr / bin:$ PATH哪个python
- 在/ usr / bin中/蟒蛇
光盘
virtualenv tf
source~ / tf / bin / activate
pip install tensorflow
要在将来使用tensorflow,请记住必须先激活venv( source~ / tf / bin / activate 。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.