When building and installing Tensorflow from source code, bazel does not support Proxy under Proxy environment, so Even if I follow the homepage, an error occurs and I cannot install it properly.
As of February 2016, bazel does not support Proxy, so fetch the Proxy compatible version of bazel from here.
git clone https://github.com/StateFarmIns/bazel
cd bazel
./compile.sh
** * Even if you don't bother to build bazel, you can build it by specifying the following with the --host_jvm_args option. ** **
bazel --host_jvm_args="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8080 \
-Dhttps.proxyHost=localhost -Dhttps.proxyPort=8080" build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
After that, just use this and do as written on the Tensorflow homepage.
https://www.tensorflow.org/versions/v0.6.0/get_started/os_setup.html#source
Recommended Posts