ubuntu15.10 Source Installation TensorFlow

Source: Internet
Author: User

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.

    1. 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
    1. 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
    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.