Ubuntu20.04安装protobuf

描述

Ubuntu20.04安装protobuf

安装命令

Linux系统级安装

sudo apt-get install libprotobuf-dev protobuf-compiler  #Linux系统级的安装

通过python2安装

sudo pip install google protocol  #python2.7版本的安装

通过python3安装

sudo pip3 install google protocol  #python3.5版本的安装

通过anaconda安装

conda install protobuf  #anaconda版本的安装

查看系统中已有的protobuf版本

查看哪些路径下安装了protobuf

whereis protoc

查看当前默认的protobuf

which protoc 

查看当前默认的protobuf的版本

protoc --version

查看当前默认的系统级protobuf版本

sudo protoc --version

参考链接

https://blog.csdn.net/weixin_44966641/article/details/122354782

猜你喜欢

转载自blog.csdn.net/weixin_42156097/article/details/127540420