8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[TF]Proxy環境でTensorflowをビルドする方法

Last updated at Posted at 2016-02-15

Tensorflowをソースコードからビルドしてインストールする場合、Proxy環境下では、bazelがProxyに対応していないため、
ホームページのとおりにやってもエラーが出て、うまくインストールできない。

2016年2月現在も、bazelはProxyに対応していないので、ここからProxy対応版のbazelを取ってくる。

git clone https://github.com/StateFarmIns/bazel
cd bazel
./compile.sh

※ わざわざbazelをビルドしなくても、--host_jvm_args オプションで下記の通り指定するとビルドできます。

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

あとは、これを使ってTensorflowのホームページに書いてあるとおりにやるだけ。

8
8
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?