no module named google.protobuf.internal

本文记录了在使用Caffe的Python接口时遇到的问题及解决过程,主要问题为缺少protobuf模块导致无法正常运行,通过查找资料并进行相应配置修改最终解决了此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
然后在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值