Just bought the new machine and installed the latest Ubuntu system. The GPU support is not selected according to the process installed on the official website.
- Download the source code. Git is required, and if you don't have Git installed you need to install it first.
git clone --recurse-submodules https://github.com/tensorflow/tensorflow
- Installing Bazel
Install dependencies First
sudo apt-get install openjdk-8-jdk openjdk-8-source sudo apt-get install pkg-config zip g++ zlib1g-dev unzip
To download the installation file:
https://github.com/bazelbuild/bazel/releases/download/0.1.1/bazel-0.1.1-installer-linux-x86_64.sh
chmod +x install-version-os.sh./install-version-os.sh --user
The installer will install Bazel into the $home/bin directory and need to add this directory to the path
$ export PATH="$PATH:$HOME/bin"
Install other dependencies
apt-get install python-numpy swig python-dev
- Compiling and installing using PIP
bazel build -c opt tensorflow/tools/pip_package:build_pip_package
This line of command requires a relative directory, and: The following needs to be consistent with the name field of the Sh_binary in the build file under that directory
mkdir /tmp/tensorflow_pkgbazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkgpip install /tmp/tensorflow_pkg/tensorflow-0.5.0-py2-none-any.whl
Install requires networking, if the network failure will be an error. At this point, the installation is complete
ubuntu15.10 Source Installation TensorFlow