在python中导入cv2时出错

时间:2017-08-26 14:10:29

标签: python opencv

当我在python3中运行import cv2时,我收到以下错误:

This program was compiled against version 2.6.1 of the Protocol Buffer 
 runtime library, which is not compatible with the installed version 
(3.1.0).  Contact the program author for an update.  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 "/build/mir-ui6vjS/mir-
0.26.3+16.04.20170605/obj-x86_64-linux-
gnu/src/protobuf/mir_protobuf.pb.cc".)
terminate called after throwing an instance of 
'google::protobuf::FatalException'
 what():  This program was compiled against version 2.6.1 of the 
Protocol Buffer runtime library, which is not compatible with the 
installed version (3.1.0).  Contact the program author for an update.  
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 "/build/mir-ui6vjS/mir-
0.26.3+16.04.20170605/obj-x86_64-linux-
gnu/src/protobuf/mir_protobuf.pb.cc".)
Aborted (core dumped)

我查了here,它说我需要更新我的头文件。我该怎么做呢?

这样做的命令是什么?

0 个答案:

没有答案