[英]Error Tensorflow Couldn't find field google.protobuf.EnumDescriptorProto.EnumReservedRange.start
Hi I'm trying running an tensorflow application in my computer. 嗨,我正在尝试在我的计算机上运行tensorflow应用程序。 I installed the tf , using the pip and follow the steps in the tensorflows documentation. 我使用pip安装了tf并按照tensorflows文档中的步骤进行操作。
I'm using python 3.6.3 in ubuntu 17.10 我在ubuntu 17.10中使用python 3.6.3
KeyError: "Couldn't find field google.protobuf.EnumDescriptorProto.EnumReservedRange.start"
Tks TKS
I get this error when I try to use TensorFlow with Anaconda rather than Python 2.7 on a Mac. 当我尝试在Mac上使用TensorFlow和Anaconda而不是Python 2.7时,我收到此错误。 To see if you are using Anaconda, use the which command: 要查看您是否使用Anaconda,请使用which命令:
which python 哪个python
- /Users/me/anaconda2/bin/python /用户/我/ anaconda2 /斌/蟒蛇
If this is causing your problem, the solution is to install Tensorflow in a virtual environment: 如果这导致您的问题,解决方案是在虚拟环境中安装Tensorflow:
export PATH=/usr/local/bin:/usr/bin:$PATH which python export PATH = / usr / local / bin:/ usr / bin:$ PATH哪个python
- /usr/bin/python 在/ usr / bin中/蟒蛇
cd 光盘
virtualenv tf virtualenv tf
source ~/tf/bin/activate source~ / tf / bin / activate
pip install tensorflow pip install tensorflow
To use tensorflow in the future, remember that you must first activate the venv ( source ~/tf/bin/activate .) 要在将来使用tensorflow,请记住必须先激活venv( source~ / tf / bin / activate 。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.