我正在尝试使用以下指南在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
如代码片段所示,根目录不包含任何特殊字符。我已经在网上搜索了几个小时,也找不到解决方案。有没有人有解决这个问题的建议?
发布于 2019-11-06 20:58:02
这是一个关于命令行的错误。
也许你不小心输入了无效的字符,混淆了Bazel。有时,如果我用Ctrl+Left / Ctrl+Right左右跳跃,不小心撞到了中间的一个键,我就会这样做。
尝试再次键入该命令(请勿复制-粘贴),然后运行它。而且,它是--verbose_failures (以两个-字符开头),而不是- verbose_failures。
https://stackoverflow.com/questions/58727245
复制相似问题