简体   繁体   中英

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

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

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 .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM