1.问题报错
rank.proto: A file with this name is already in the pool.
[E 210422 14:48:32 flask_server:87] grpc请求执行失败,详细信息:Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "rank.proto":
rank.proto: A file with this name is already in the pool.
2.解决方法
(1) 查看当前protobuf版本,假设为3.12.2
pip3 show protobuf
(2)卸载该版本
pip uninstall protobuf
(3)采用如下方式,重新安装对应的版本
pip install --no-binary protobuf protobuf==3.12.2
3.使用pip3 install -r requirements.txt方式安装
requirements.txt内容如下
protobuf==3.12.2 --no-binary protobuf