当我试图使用Python的grpc_tools.protoc库生成proto文件时:
python -m grpc_tools.protoc -I protos --python_out=. --gprc_python_out=. protos/test.proto它因错误而失败。
protoc-gen-gprc_python: program not found or is not executable
--gprc_python_out: protoc-gen-gprc_python: Plugin failed with status code 1.我已经在conda环境中安装了以下软件包:
conda install -c conda-forge grpclib
conda install grpcio grpcio-tools$ python -m grpc_tools.protoc --version
libprotoc 3.6.1我的conda环境遗漏了什么,使我无法运行上面的命令?谢谢
发布于 2022-09-14 03:21:20
错了。
你想要--grpc_python_out=.
你有--gprc_python_out=.
https://stackoverflow.com/questions/73710943
复制相似问题