mac 安装protobuf

访问
protocolbuffers/protobuf
找到需要的版本
下载压缩包

wget https://github.com/protocolbuffers/protobuf/releases/download/v3.7.0/protobuf-python-3.7.0.zip

解压

unzip protobuf-python-3.7.0.zip 
cd protobuf-3.7.0/
./configure
make
make install
sudo vim /etc/profile 
export PROTOBUF=/Users/cyy/Downloads/protobuf-3.7.0
export PATH=$PROTOBUF/bin:$PATH

source /etc/profile

安装成功

protoc --version

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_40161254/article/details/88701875