在Windows操作系统中构建Tensorflow pip-package时出错

时间:2018-03-22 00:06:13

标签: tensorflow pip bazel

我正在尝试构建tensorflow pip包但我收到的错误对我来说很难理解。以下是mysys64打印的消息。有没有人知道我需要做些什么才能解决这个问题?

Master Tk@DESKTOP-BJH5T82 MSYS /C/tensorflow
$ bazel build -c opt $BUILD_OPTS tensorflow/tools/pip_package:build_pip_package
...................
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: tensorflow/tools/pip_package
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (2 packages loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (4 packages loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (4 packages loaded)

WARNING: C:/tools/msys64/tmp/_bazel_master tk/x1e5egqw/external/protobuf_archive/WORKSPACE:1: Workspace name in C:/tools/msys64/tmp/_bazel_master tk/x1e5egqw/external/protobuf_archive/WORKSPACE (@com_google_protobuf) 
does not match the name given in the repository's definition (@protobuf_archive); this will cause a build error in future versions

Analyzing: target //tensorflow/tools/pip_package:build_pip_package (62 packages loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (66 packages loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (70 packages loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (70 packages loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (70 packages loaded)

ERROR: C:/tensorflow/third_party/eigen3/BUILD:20:1: no such package '@eigen_archive//': Traceback (most recent call last):
        File "C:/tensorflow/third_party/repo.bzl", line 88
                _apply_patch(ctx, ctx.attr.patch_file)
        File "C:/tensorflow/third_party/repo.bzl", line 59, in _apply_patch
                _execute_and_check_ret_code(ctx, cmd)
        File "C:/tensorflow/third_party/repo.bzl", line 44, in _execute_and_check_ret_code
                fail("Non-zero return code({1}) when ...))
Non-zero return code(2) when executing 'c:/tools/msys64/usr/bin/bash.exe -l -c patch -p1 -d C:/tools/msys64/tmp/_bazel_master tk/x1e5egqw/external/eigen_archive -i C:/tensorflow/third_party/eigen_fix_cuda_compilation.patch':
Stdout:
Stderr: patch: **** Can't change to directory C:/tools/msys64/tmp/_bazel_master : No such file or directory
 and referenced by '//third_party/eigen3:eigen3'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build abort ed: Loading failed
INFO: Elapsed time: 40.537s
FAILED: Build did NOT complete successfully (70 packages loaded)

0 个答案:

没有答案