[PYTHON] [TF] How to build Tensorflow in Proxy environment

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

[TF] How to build Tensorflow in Proxy environment
How to build a development environment for TensorFlow (1.0.0) (Mac)
How to run TensorFlow 1.0 code in 2.0
How to access environment variables in Python
Method to build Python environment in Xcode 6
How to build a sphinx translation environment
How to use tensorflow under docker environment
How to run CNN in 1 system notation in Tensorflow 2
How to use pip3 under proxy environment Note
How to build Java environment on Ubuntu (Linux)
How to force build TensorFlow 2.3.0 for CUDA11 + cuDNN8
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
How to run AutoGluon in Google Colab GPU environment
Procedure to install TensorFlow in fish shell environment (Anaconda 4.0.0)
How to build a Django (python) environment on docker
How to resolve SSL module errors in Anaconda environment
How to use jupyter lab in Windows 10 local environment
How to pass matplotlib backend settings in environment variables
How to build a Python environment on amazon linux 2
How to install poetry (error handling) in zsh environment
[TF] How to save and load Tensorflow learning parameters
Pip install in proxy environment
[TensorFlow 2 / Keras] How to run learning with CTC Loss in Keras
How to use VS Code in venv environment on windows
A note on how to load a virtual environment in PyCharm
How to develop in a virtual environment of Python [Memo]
How to build a python2.7 series development environment with Vagrant
[TF] How to load / save Model and Parameter in Keras
[Python] How to do PCA in Python
How to handle session in SQLAlchemy
How to use classes in Theano
How to write soberly in pandas
How to collect images in Python
How to update Spyder in Anaconda
How to use SQLite in Python
How to convert 0.5 to 1056964608 in one shot
How to install TensorFlow on CentOS 7
How to reflect CSS in Django
How to use Mysql in python
How to convert Tensorflow model to Lite
How to wrap C in Python
How to use ChemSpider in Python
How to use PubChem in Python
How to build MongoDB C driver
How to handle Japanese in Python
How to log in to Docker + NGINX
How to call PyTorch in Julia
How to build a LAMP environment using Vagrant and VirtulBox Note
How to deal with python installation error in pyenv (BUILD FAILED)
How to handle multiple versions of CUDA in the same environment
How to debug Dash (Flask) in Docker + VSCode + remote connection environment
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
[TensorFlow 2] How to check the contents of Tensor in graph mode
Shell script to build pyenv environment on ubuntu in one shot
How to build Python and Jupyter execution environment with VS Code
How to use calculated columns in CASTable
[Introduction to Python] How to use class in Python?
How to suppress display error in matplotlib
Use tensorflow in an environment without root
How to dynamically define variables in Python
How to do R chartr () in Python