2017-05-22 1 views
1

Jungs! Ich versuche, ein Pip-Paket für tensorflow in Installing TensorFlow from Sources .Nach durch folgende Schritte Aufruf des folgenden Befehls zu bauen: $ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package, aber ich habe diese wie folgt:Bazel-Problem beim Erstellen eines Pip-Pakets für TensorFlow mit CPU-only-Unterstützung

ERROR: error loading package '': Encountered error while reading extension file 
'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': Error do 
wnloading [http://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive 
/aac19edc557aec9b603cd7ffe359401264ceff0d.tar.gz, https://github.com/bazelbuild/ 
rules_closure/archive/aac19edc557aec9b603cd7ffe359401264ceff0d.tar.gz] to /priva 
te/var/tmp/_bazel_WilliamHuang/75f5fa598a7d55b225c399e7e82a3908/external/io_baze 
l_rules_closure/aac19edc557aec9b603cd7ffe359401264ceff0d.tar.gz: All mirrors are 
down: []. 
INFO: Elapsed time: 58.126s 

Meine configure wie folgt:

Do you wish to build TensorFlow with MKL support? [y/N] n 
No MKL support will be enabled for TensorFlow 
Please specify optimization flags to use during compilation when 
bazel option "--config=opt" is specified [Default is -march=native]: 
Do you wish to build TensorFlow with Google Cloud Platform support? 
[y/N] n 
No Google Cloud Platform support will be enabled for TensorFlow 
Do you wish to build TensorFlow with Hadoop File System support? 
[y/N] n 
No Hadoop File System support will be enabled for TensorFlow 
Do you wish to build TensorFlow with the XLA just-in-time compiler 
(experimental)? [y/N] n 
No XLA JIT support will be enabled for TensorFlow 
Do you wish to build TensorFlow with VERBS support? [y/N] n 
No VERBS support will be enabled for TensorFlow 
Do you wish to build TensorFlow with OpenCL support? [y/N] n 
No OpenCL support will be enabled for TensorFlow 
Do you wish to build TensorFlow with CUDA support? [y/N] n 
No CUDA support will be enabled for TensorFlow 

Und meine bazel Version ist 0.4.5

Build label: 0.4.5-homebrew 

Hoffe euch bitte mich mit diesem Problem helfen könnte. Danke im Voraus.

Antwort

0

Ich habe dieses Problem gelöst, indem ein Proxy vor $ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package als

export http_proxy=http://proxy_ip:port (e.g. export http_proxy=http://10.110.0.25:8888) 
export https_proxy=http://proxy_ip:port 
Einstellung
Verwandte Themen