Tensorflow 2无法在Windows 10上使用bazel进行编译-包名称错误

我正在尝试使用以下指南在Windows上编译Tensorflow 2 c ++ API:https://itnext.io/how-to-use-your-c-muscle-using-tensorflow-2-0-and-xcode-without-using-bazel-builds-9dc82d5e7f80

所有依赖项均已下载并安装。

进入实际的编译命令时:

bazel build -c opt — verbose_failures //tensorflow:libtensorflow_cc.so

从tensorflow根目录中来回,我得到以下错误:

Skipping 'ù': Bad target pattern 'ù': package names may contain A-Z,a-z,0-9,or any of ' !"#$%&'()*+,-./;<=>?[]^_`{|}~' (most 7-bit ascii characters except 0-31,127,':',or '\')

A snippet of the Powershell input and output related to the issue

如代码段所示,根目录不包含任何特殊字符。 我在网上搜索了几个小时,找不到解决方案。 有人建议如何解决这个问题吗?

bjwmkj 回答:Tensorflow 2无法在Windows 10上使用bazel进行编译-包名称错误

这是关于命令行的错误。

也许您不小心输入了使Bazel感到困惑的无效字符。有时候,如果我用Ctrl + Left / Ctrl + Right左右跳,并且不小心碰到了它们之间的一个键,我就会这样做。

尝试再次键入命令(不要复制粘贴),然后运行它。 另外,它是--verbose_failures(以两个-字符开头),而不是- verbose_failures

本文链接:https://www.f2er.com/3153415.html

大家都在问