CAFFE中 安装google protobuf
来源:互联网 发布:淘宝商家的客服电话 编辑:程序博客网 时间:2024/05/17 08:20
在装了 tensorflow之后,发现caffe不能用了,import 错误,发现时 googleprotobuf装错了,需要重装
1 >在网站 http://code.google.com/p/protobuf/downloads/list上可以下载 Protobuf 的源代码。然后解压编译安装便可以使用它了。
1 >在网站 http://code.google.com/p/protobuf/downloads/list上可以下载 Protobuf 的源代码。然后解压编译安装便可以使用它了。
安装步骤如下所示:
tar -xzf protobuf-2.1.0.tar.gz
cd protobuf-2.1.0
./configure --prefix=/usr/local/protobuf
make
make check
make install
2 > sudo vim /etc/profile
添加
export PATH=$PATH:/usr/local/protobuf/bin/
export PKG_CONFIG_PATH=/usr/local/protobuf/lib/pkgconfig/
保存执行
source /etc/profile
同时 在~/.profile中添加上面两行代码,否则会出现登录用户找不到protoc命令
3 > 配置动态链接库路径
sudo vim /etc/ld.so.conf
插入:
/usr/local/protobuf/lib
4 > su #root 权限
ldconfig
5> 记得要去python文件夹内(protobuf-2.1.10/python安装包下)安装python所需要的模块
sudo python setup.py build
sudo python setup.py test
sudo python setup.py test
完成后,验证是否安装成功
protoc --version
验证python模块是否安装成功
python
import google.protobuf
如果没有报错,则说明安装正常
1 0
- CAFFE中 安装google protobuf
- Caffe安装中多版本protobuf选择问题
- caffe安装过程中与protobuf相关的问题
- 安装Google protobuf
- caffe支持pycaffe的安装:ImportError: No module named google.protobuf.internal
- [protobuf] 如何在Windows环境下的VS中安装使用Google Protobuf完成SOCKET通信
- google protobuf src安装运行
- Linux下安装Google protobuf
- Windows中使用google protobuf
- python caffe报错:No module named google.protobuf.internal
- python caffe报错:No module named google.protobuf.internal
- 【Caffe-windows】 ImportError: No module named google.protobuf.internal
- ubuntu 16.04+Caffe:build_release/lib/libcaffe.so:对‘google::protobuf:
- Google protobuf的安装及使用
- Google protobuf的安装及使用
- Google的Protobuf安装及使用笔记
- linux下安装google protobuf(详细)
- Ubuntu 15.04 安装google protobuf步骤
- maven-compiler-plugin 指定工程编译JDK
- Java开发环境搭建与配置
- Qt5.6实现的串口调试助手
- 05 Activity 跳转传值
- MFC CString转const char*
- CAFFE中 安装google protobuf
- iOS开发UI篇—Quartz2D使用(信纸条纹)
- 关于assetbundle
- 【广利核面试题】C语言中goto语句为什么要少用甚至不用?
- rman命令资料
- POJ 2190 模拟
- 05 Activity 回传数据
- Linux下命令行连接MySQL
- ASM(字节码处理工具)