简体   繁体   中英

Tensorflow 2 won't compile using bazel on windows 10 - package name error

I am trying to compile Tensorflow 2 c++ API on windows, using this guide: https://itnext.io/how-to-use-your-c-muscle-using-tensorflow-2-0-and-xcode-without-using-bazel-builds-9dc82d5e7f80

All dependencies where downloaded and installed.

When getting to the actual compilation command:

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

taken fro within the tensorflow root directory, i get the following Error:

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

As seen in the snippet, The root directory does not contain any special characters. I have searched the web for hours and couldn't find a solution. Does anyone have a suggestion how to tackle this?

This is an error about the command line.

Maybe you accidentally entered invalid characters that confused Bazel. I do that sometimes if I jump left and right with Ctrl+Left / Ctrl+Right and accidentally hit a key inbetween.

Try typing the command again (do not copy-paste it), and running it. Also, it is --verbose_failures (starting with two - characters), not - verbose_failures .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM