无法让tensorflow工作“KeyError:”无法找到字段google.protobuf.GeneratedCodeInfo.Annotation.path“

时间:2016-05-05 10:22:56

标签: macos python-2.7 tensorflow

我无法安装tensorflow,这是我收到的错误信息:

dhcp-3-6:~ M$ python
Python 2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/tensorflow/__init__.py", line 23, in     <module>
from tensorflow.python import *
File "/Library/Python/2.7/site-packages/tensorflow/python/__init__.py", line  49, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "/Library/Python/2.7/site-  packages/tensorflow/core/framework/graph_pb2.py", line 10, in <module>
from google.protobuf import descriptor_pb2
File "/Library/Python/2.7/site-packages/google/protobuf/descriptor_pb2.py",  line 1495, in <module>
options=None),
File "/Library/Python/2.7/site-packages/google/protobuf/descriptor.py", line 505, in __new__
return _message.default_pool.FindFieldByName(full_name)
KeyError: "Couldn't find field   google.protobuf.GeneratedCodeInfo.Annotation.path"

我尝试了很多表格,但仍然无法看到如何让它发挥作用。你能给我一些指导吗?

0 个答案:

没有答案