无法在虚拟环境中运行协议



我正在尝试用一些数据训练一个tensorflow预训练模型。我创建了一个虚拟环境来正确管理库的版本。但是,我无法在虚拟环境中运行"protoc"命令。它在虚拟环境外运行良好,因为我已经将protocol .exe文件添加到path。
这是我得到的错误:

(environment_3_9_7) PS C:UsersdipesDesktopComputer VisionComputer Vision Assignment> protoc
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
+ ~~~~~~
+ CategoryInfo          : ObjectNotFound: (protoc:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException 

如何将protocol .exe添加到virtualenv的路径下?

只需将protocol .exe文件粘贴到虚拟环境的/Scripts中就解决了这个问题。

相关内容

最新更新