tensorflow: Faild build windows
System information
OS Platform and Distribution: Windows 10 TensorFlow installed from: source TensorFlow version: 2.3 Python version: 3.8.3 Bazel version (if compiling from source): 3.1.0 CUDA/cuDNN version: 11.0.2_451.48/8.0.2.39 GPU model and memory: 1060 super
Repository rule cuda_configure defined at:
G:/tensorflow/third_party/gpus/cuda_configure.bzl:1407:18: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_config_cuda':
Traceback (most recent call last):
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1377
_create_local_cuda_repository(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1221, in _create_local_cuda_repository
to_list_of_strings(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1222, in to_list_of_strings
_cuda_include_path(<2 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 364, in _cuda_include_path
inc_entries.append(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 364, in inc_entries.append
realpath(repository_ctx, <1 more arguments>)
File "G:/tensorflow/third_party/remote_config/common.bzl", line 268, in realpath
execute(repository_ctx, <1 more arguments>)
File "G:/tensorflow/third_party/remote_config/common.bzl", line 208, in execute
fail(<1 more arguments>)
Repository command failed
[FATAL 22:56:20.372 src/main/cpp/blaze.cc:1290] Unknown startup option: '-c'.
For more info, run 'bazel help startup_options'.
ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1377
_create_local_cuda_repository(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1221, in _create_local_cuda_repository
to_list_of_strings(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1222, in to_list_of_strings
_cuda_include_path(<2 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 364, in _cuda_include_path
inc_entries.append(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 364, in inc_entries.append
realpath(repository_ctx, <1 more arguments>)
File "G:/tensorflow/third_party/remote_config/common.bzl", line 268, in realpath
execute(repository_ctx, <1 more arguments>)
File "G:/tensorflow/third_party/remote_config/common.bzl", line 208, in execute
fail(<1 more arguments>)
Repository command failed
[FATAL 22:56:20.372 src/main/cpp/blaze.cc:1290] Unknown startup option: '-c'.
For more info, run 'bazel help startup_options'.
WARNING: Target pattern parsing failed.
ERROR: no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1377
_create_local_cuda_repository(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1221, in _create_local_cuda_repository
to_list_of_strings(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 1222, in to_list_of_strings
_cuda_include_path(<2 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 364, in _cuda_include_path
inc_entries.append(<1 more arguments>)
File "G:/tensorflow/third_party/gpus/cuda_configure.bzl", line 364, in inc_entries.append
realpath(repository_ctx, <1 more arguments>)
File "G:/tensorflow/third_party/remote_config/common.bzl", line 268, in realpath
execute(repository_ctx, <1 more arguments>)
File "G:/tensorflow/third_party/remote_config/common.bzl", line 208, in execute
fail(<1 more arguments>)
Repository command failed
[FATAL 22:56:20.372 src/main/cpp/blaze.cc:1290] Unknown startup option: '-c'.
For more info, run 'bazel help startup_options'.
INFO: Elapsed time: 1.209s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
currently loading: tensorflow/tools/pip_package
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (9 by maintainers)
Officially for Cuda 11 only master (and of course the next 2.4 release).
But you are using Anaconda python. Please follow our official build guide.