嗨,我安装了tensorflow
当我运行python脚本时,会得到以下错误:
libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.5.0 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "external/protobuf_archive/src/google/protobuf/any.pb.cc".)在抛出'google::protobuf::FatalException‘This ()的实例后调用的终止:此程序需要协议缓冲区运行时库的3.5.0版本,但已安装的版本为2.6.1。请更新你的图书馆。如果您自己编译了该程序,请确保您的头来自与链接时间库相同版本的协议缓冲区。(版本验证在"external/protobuf_archive/src/google/protobuf/any.pb.cc".)中失败中止(核心倾弃)
pip show protobuf i get Version: 3.6.1
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: protobuf@googlegroups.com
Author-email: protobuf@googlegroups.com
License: 3-Clause BSD License
Location: /home/nvidia/vitualenv/lib/python2.7/site-packages
Requires: setuptools, six
Required-by: tensorflow-gpu, tensorboard有人有办法解决这个问题吗?
谢谢
发布于 2019-02-04 17:29:39
我终于成功了。最后,我必须在python文件的开头进行import tensorflow。除了这个我没有其他的解决办法。
我不明白为什么。如果有人知道答案,你能解释一下为什么吗?
谢谢
https://stackoverflow.com/questions/54518134
复制相似问题