no module named google.protobuf.internal

来源:互联网 发布:网络规划开题报告 编辑:程序博客网 时间:2024/06/06 00:43

caffe 的python接口好像有一段时间不能用了 

报的错误是:no module named google.protobuf.internal

在网上百度到这个错误是:

http://stackoverflow.com/questions/31308812/no-module-named-google-protobuf

显示是没有安装protobuf 这个

但是貌似我是每次出现这个错误 都是试图装下 sudo install protobuf

但是好像一直没有成功装上过 一直报错:

ImportError: No module named google.protobuf.internal
>>> exit()
ggj@ggj-All-Series:~$ sudo apt-get install libqt4-core libqt4-gui libqt4-dev
[sudo] password for ggj:
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/mirrors.163.com_ubuntu_dists_trusty_universe_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.

百度到的解决方法:

http://www.2cto.com/os/201306/220146.html

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
然后在

0 0
原创粉丝点击