Error Tensorflow Couldn't find field google.protobuf.EnumDescriptorProto.EnumReservedRange.start

868 views Asked by At

Hi I'm trying running an tensorflow application in my computer. I installed the tf , using the pip and follow the steps in the tensorflows documentation.

I'm using python 3.6.3 in ubuntu 17.10

KeyError: "Couldn't find field google.protobuf.EnumDescriptorProto.EnumReservedRange.start"

Tks

1

There are 1 answers

0
Jeffrey Hall On

I get this error when I try to use TensorFlow with Anaconda rather than Python 2.7 on a Mac. To see if you are using Anaconda, use the which command:

which python

  • /Users/me/anaconda2/bin/python

If this is causing your problem, the solution is to install Tensorflow in a virtual environment:

export PATH=/usr/local/bin:/usr/bin:$PATH which python

  • /usr/bin/python

cd

virtualenv tf

source ~/tf/bin/activate

pip install tensorflow

To use tensorflow in the future, remember that you must first activate the venv (source ~/tf/bin/activate.)