Cannot import after installing with pip · Issue #43 · tensorflow/tensorflow · GitHub
Skip to content

Cannot import after installing with pip #43

Description

@piiswrong

I installed the binary with gpu support from pip, but when I import it, I get this error:

import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/init.py", line 4, in
from tensorflow.python import *
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/python/init.py", line 13, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 8, in
from google.protobuf import reflection as _reflection
File "/home/jxie/anaconda/lib/python2.7/site-packages/google/protobuf/reflection.py", line 56, in
from google.protobuf.pyext import cpp_message as message_impl
File "/home/jxie/anaconda/lib/python2.7/site-packages/google/protobuf/pyext/cpp_message.py", line 42, in
class GeneratedProtocolMessageType(_message.MessageMeta):
AttributeError: 'module' object has no attribute 'MessageMeta'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions