【发布时间】:2021-09-22 07:29:52
【问题描述】:
我正在尝试使用一些数据训练一个 tensorflow 预训练模型。我创建了一个虚拟环境来正确管理库的版本。但是,我无法在虚拟环境中运行“protoc”命令。它在虚拟环境之外运行良好,因为我已经将 protoc.exe 文件添加到路径中。
这是我得到的错误:
(environment_3_9_7) PS C:\Users\dipes\Desktop\Computer Vision\Computer 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
如何将protoc.exe添加到virtualenv的路径中?
【问题讨论】:
标签: python-3.x tensorflow protocol-buffers