运行命令协议时出错,术语“协议”未被识别为cmdlet的名称,函数

问题描述

我已经为我的项目创建了虚拟环境,看起来像这样

(virtualenv) PS C:\work\ugves\project\myproject>

使用以下方法安装了原型程序

pip intalled protobuff

现在尝试使用命令protoc --version

检查原型的版本

但是我遇到以下错误

protoc : The term 'protoc' is not recognized as the name of a cmdlet,function,script file,or operable program. Check the spelling of the name,or if a path 
was included,verify that the path is correct and try again.
At line:1 char:1
+ protoc --python3_out=gen myproto.proto
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (protoc:String) [],CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

如果我在virtualenv文件夹中看到Script / Lib,则在以下路径中安装了protobuff

C:\work\myproject\virtualenv\Lib\site-packages\google\protobuf

我该如何解决此问题,

我正在使用vscode进行python脚本编写

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)