Ошибка сборки Tensorflow Bazel: такого пакета нет - PullRequest
0 голосов
/ 10 октября 2019

Я пытался построить tenorflow 1.13.1 из источника, но не смог, ошибка произошла, как показано ниже:

ERROR: Skipping '//tensorflow:libtensorflow_cc.so': error loading package 'tensorflow': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 1556
                _create_local_cuda_repository(repository_ctx)
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 1395, in _create_local_cuda_repository
                find_cc(repository_ctx)
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 239, in find_cc
                _get_msvc_compiler(repository_ctx)
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 156, in _get_msvc_compiler
                find_msvc_tool(repository_ctx, vc_path, "cl.exe").replace("\\", "/")
type 'NoneType' has no method replace(string, string)
WARNING: Target pattern parsing failed.
ERROR: error loading package 'tensorflow': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 1556
                _create_local_cuda_repository(repository_ctx)
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 1395, in _create_local_cuda_repository
                find_cc(repository_ctx)
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 239, in find_cc
                _get_msvc_compiler(repository_ctx)
        File "C:/d/tensorflow-1.13.1/source/third_party/gpus/cuda_configure.bzl", line 156, in _get_msvc_compiler
                find_msvc_tool(repository_ctx, vc_path, "cl.exe").replace("\\", "/")
type 'NoneType' has no method replace(string, string)

Кажется, Bazel не распознает @local_config_cuda \\ cuda как пакет. Почему? И что мне делать?

...