text: windows 10 build error
cygwin mismatch error + bazel build error
ERROR: An error occurred during the fetch of repository 'local_execution_config_python':
Traceback (most recent call last):
File "C:/users/alanp/_bazel_alanp/6x5nacvr/external/org_tensorflow/third_party/py/python_configure.bzl", line 210, column 33, in _create_local_python_repository
python_lib = _get_python_lib(repository_ctx, python_bin)
File "C:/users/alanp/_bazel_alanp/6x5nacvr/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib
result = execute(repository_ctx, [python_bin, "-c", cmd])
File "C:/users/alanp/_bazel_alanp/6x5nacvr/external/org_tensorflow/third_party/remote_config/common.bzl", line 219, column 13, in execute
fail(
Error in fail: Repository command failed
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
INFO: Repository go_sdk instantiated at:
C:/users/alanp/repo/tftext/WORKSPACE:78:10: in <toplevel>
C:/users/alanp/_bazel_alanp/6x5nacvr/external/org_tensorflow/tensorflow/workspace0.bzl:117:20: in workspace
C:/users/alanp/_bazel_alanp/6x5nacvr/external/com_github_grpc_grpc/bazel/grpc_extra_deps.bzl:36:27: in grpc_extra_deps
C:/users/alanp/_bazel_alanp/6x5nacvr/external/io_bazel_rules_go/go/toolchain/toolchains.bzl:379:28: in go_register_toolchains
C:/users/alanp/_bazel_alanp/6x5nacvr/external/io_bazel_rules_go/go/private/sdk.bzl:65:21: in go_download_sdk
Repository rule _go_download_sdk defined at:
C:/users/alanp/_bazel_alanp/6x5nacvr/external/io_bazel_rules_go/go/private/sdk.bzl:53:35: in <toplevel>
ERROR: Analysis of target '//oss_scripts/pip_package:build_pip_package' failed; build aborted: Repository command failed
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
INFO: Elapsed time: 0.768s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (3 packages loaded, 58 targets configured)
currently loading: @org_tensorflow_hub//tensorflow_hub
Fetching ...docker; Cloning 251f6a68b439744094faff800cd029798edf9faa of https://github.com/bazelbuild/rules_docker\
.git
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 19 (6 by maintainers)
As @edloper pointed out, this looks like an environment setup problem. I suggest following the environment setup instructions for TF: https://www.tensorflow.org/install/source_windows
Yep. That looks like a Bazel issue. Strangely, after asking around, nobody I know has hit this error, so I still suspect it is partially due to your environment.
@edloper @broken
I’ve built tensorflow so many times
you guys answered totally wrong answers