From f30918b3694afe844990cbddc82e27e023d88856 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 28 Mar 2017 21:03:48 -0800 Subject: Fixed some formatting issues in Installing TF on Linux and Installing TF on Mac OS. Change: 151538676 --- tensorflow/docs_src/install/install_linux.md | 43 ++++++++++++++-------------- tensorflow/docs_src/install/install_mac.md | 42 +++++++++++++-------------- 2 files changed, 43 insertions(+), 42 deletions(-) diff --git a/tensorflow/docs_src/install/install_linux.md b/tensorflow/docs_src/install/install_linux.md index b2a008fb96..80331e7ea8 100644 --- a/tensorflow/docs_src/install/install_linux.md +++ b/tensorflow/docs_src/install/install_linux.md @@ -114,16 +114,17 @@ Take the following steps to install TensorFlow with Virtualenv: 1. Install pip and virtualenv by issuing one of the following commands:
$ sudo apt-get install python-pip python-dev python-virtualenv # for Python 2.7
-     $ sudo apt-get install python3-pip python3-dev python-virtualenv # for Python 3.n
+ $ sudo apt-get install python3-pip python3-dev python-virtualenv # for Python 3.n 2. Create a virtualenv environment by issuing one of the following commands: -
$ virtualenv --system-site-packages targetDirectory # for Python 2.7 
- $ virtualenv --system-site-packages -p python3 targetDirectory # for Python 3.n +
$ virtualenv --system-site-packages targetDirectory # for Python 2.7
+    $ virtualenv --system-site-packages -p python3 targetDirectory # for Python 3.n
- The targetDirectory specifies the top of the + where targetDirectory specifies the top of the virtualenv tree. Our instructions assume that - targetDirectory is `~/tensorflow`, but you may choose any directory. + targetDirectory is `~/tensorflow`, but you may + choose any directory. 3. Activate the virtualenv environment by issuing one of the following commands: @@ -151,24 +152,24 @@ Take the following steps to install TensorFlow with Virtualenv: lower than 8.1), install TensorFlow in the active virtualenv environment by issuing a command of the following format: -
 (tensorflow)$ pip install --upgrade TF_PYTHON_URL   # Python 2.7
-     (tensorflow)$ pip3 install --upgrade TF_PYTHON_URL  # Python 3.n 
+
 (tensorflow)$ pip install --upgrade tfBinaryURL   # Python 2.7
+     (tensorflow)$ pip3 install --upgrade tfBinaryURL  # Python 3.n 
- where TF_PYTHON_URL identifies the URL of the + where tfBinaryURL identifies the URL of the TensorFlow Python package. The appropriate value of - TF_PYTHON_URLdepends on the operating system, + tfBinaryURLdepends on the operating system, Python version, and GPU support. Find the appropriate value for - TF_PYTHON_URL for your system + tfBinaryURL for your system [here](#the_url_of_the_tensorflow_python_package). For example, if you are installing TensorFlow for Linux, Python 2.7, and CPU-only support, issue the following command to install TensorFlow in the active virtualenv environment:
 (tensorflow)$ pip install --upgrade \\
-     https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl
+ https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl If you encounter installation problems, see -[Common Installation Problems](#CommonInstallationProblems). +[Common Installation Problems](#common_installation_problems). ### Next Steps @@ -233,7 +234,7 @@ of pip or pip3. If Version 8.1 or later is not installed, issue the following command, which will either install or upgrade to the latest pip version: -
 $ sudo apt-get install python-pip python-dev   # for Python 2.7
+
$ sudo apt-get install python-pip python-dev   # for Python 2.7
 $ sudo apt-get install python3-pip python3-dev # for Python 3.n
 
@@ -256,14 +257,14 @@ take the following steps: 2. (Optional.) If Step 1 failed, install the latest version of TensorFlow by issuing a command of the following format: -
 $ sudo pip  install --upgrade TF_BINARY_URL   # Python 2.7
-     $ sudo pip3 install --upgrade TF_BINARY_URL   # Python 3.n 
+
 $ sudo pip  install --upgrade tfBinaryURL   # Python 2.7
+     $ sudo pip3 install --upgrade tfBinaryURL   # Python 3.n 
- where TF_PYTHON_URL identifies the URL of the + where tfBinaryURL identifies the URL of the TensorFlow Python package. The appropriate value of - TF_BINARY_URL depends on the operating system, + tfBinaryURL depends on the operating system, Python version, and GPU support. Find the appropriate value for - TF_BINARY_URL + tfBinaryURL [here](#the_url_of_the_tensorflow_python_package). For example, to install TensorFlow for Linux, Python 2.7, and CPU-only support, issue the following command: @@ -272,7 +273,7 @@ take the following steps: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl
If this step fails, see - [Common Installation Problems](#CommonInstallationProblems). + [Common Installation Problems](#common_installation_problems). ### Next Steps @@ -446,9 +447,9 @@ Take the following steps to install TensorFlow in an Anaconda environment: 4. Issue a command of the following format to install TensorFlow inside your conda environment: -
 (tensorflow)$ pip install --ignore-installed --upgrade TF_PYTHON_URL
+
 (tensorflow)$ pip install --ignore-installed --upgrade tfBinaryURL
- where TF_PYTHON_URL is the + where tfBinaryURL is the [URL of the TensorFlow Python package](#the_url_of_the_tensorflow_python_package). For example, the following command installs the CPU-only version of TensorFlow for Python 2.7: diff --git a/tensorflow/docs_src/install/install_mac.md b/tensorflow/docs_src/install/install_mac.md index c2ce7d8bb3..592036d1eb 100644 --- a/tensorflow/docs_src/install/install_mac.md +++ b/tensorflow/docs_src/install/install_mac.md @@ -119,15 +119,15 @@ Take the following steps to install TensorFlow with Virtualenv: $ virtualenv --system-site-packages -p python3 targetDirectory # for Python 3.n - The targetDirectory identifies the top of the virtualenv tree. + where targetDirectory identifies the top of the virtualenv tree. Our instructions assume that targetDirectory is `~/tensorflow`, but you may choose any directory. 4. Activate the virtualenv environment by issuing one of the following commands: -
 $ source ~/tensorflow/bin/activate      # If using bash, sh, ksh, or zsh
-     $ source ~/tensorflow/bin/activate.csh  # If using csh or tcsh 
+
$ source ~/tensorflow/bin/activate      # If using bash, sh, ksh, or zsh
+    $ source ~/tensorflow/bin/activate.csh  # If using csh or tcsh 
The preceding `source` command should change your prompt to the following: @@ -149,14 +149,14 @@ Take the following steps to install TensorFlow with Virtualenv: lower than 8.1), install TensorFlow in the active virtualenv environment by issuing a command of the following format: -
 $ pip install --upgrade TF_BINARY_URL   # Python 2.7
-     $ pip3 install --upgrade TF_BINARY_URL  # Python 3.n 
+
 $ pip install --upgrade tfBinaryURL   # Python 2.7
+     $ pip3 install --upgrade tfBinaryURL  # Python 3.n 
- where TF_BINARY_URL identifies the URL + where tfBinaryURL identifies the URL of the TensorFlow Python package. The appropriate value of - TF_BINARY_URL depends on the operating system, + tfBinaryURL depends on the operating system, Python version, and GPU support. Find the appropriate value for - TF_BINARY_URL for your system + tfBinaryURL for your system [here](#the_url_of_the_tensorflow_python_package). For example, if you are installing TensorFlow for Mac OS X, Python 2.7, and CPU-only support, the command to install @@ -180,7 +180,7 @@ use TensorFlow in a new shell. If the virtualenv environment is not currently active (that is, the prompt is not `(tensorflow)`, invoke one of the following commands: -
 $ source ~/tensorflow/bin/activate      # bash, sh, ksh, or zsh
+
$ source ~/tensorflow/bin/activate      # bash, sh, ksh, or zsh
 $ source ~/tensorflow/bin/activate.csh  # csh or tcsh 
Your prompt will transform to the following to indicate that your @@ -263,7 +263,7 @@ take the following steps: 1. Install TensorFlow by invoking **one** of the following commands: -
$ pip install tensorflow      # Python 2.7; CPU support (no GPU support)
+     
 $ pip install tensorflow      # Python 2.7; CPU support (no GPU support)
      $ pip3 install tensorflow     # Python 3.n; CPU support (no GPU support)
      $ pip install tensorflow-gpu  # Python 2.7;  GPU support
      $ pip3 install tensorflow-gpu # Python 3.n; GPU support 
@@ -274,13 +274,13 @@ take the following steps: 2. (Optional.) If Step 1 failed, install the latest version of TensorFlow by issuing a command of the following format: -
$ sudo pip  install --upgrade TF_BINARY_URL   # Python 2.7
-     $ sudo pip3 install --upgrade TF_BINARY_URL   # Python 3.n 
+
 $ sudo pip  install --upgrade tfBinaryURL   # Python 2.7
+     $ sudo pip3 install --upgrade tfBinaryURL   # Python 3.n 
- where TF_BINARY_URL identifies the URL of the TensorFlow Python - package. The appropriate value of TF_BINARY_URL depends on the + where tfBinaryURL identifies the URL of the TensorFlow Python + package. The appropriate value of tfBinaryURL depends on the operating system, Python version, and GPU support. Find the appropriate - value for TF_BINARY_URL + value for tfBinaryURL [here](#the_url_of_the_tensorflow_python_package). For example, if you are installing TensorFlow for Mac OS, Python 2.7, and CPU-only support, issue the following command: @@ -390,9 +390,9 @@ Take the following steps to install TensorFlow in an Anaconda environment: 4. Issue a command of the following format to install TensorFlow inside your conda environment: -
(tensorflow)$ pip install --ignore-installed --upgrade $TF_PYTHON_URL
+
(tensorflow)$ pip install --ignore-installed --upgrade TF_PYTHON_URL
- where `TF_PYTHON_URL` is the + where TF_PYTHON_URL is the [URL of the TensorFlow Python package](#the_url_of_the_tensorflow_python_package). For example, the following command installs the CPU-only version of TensorFlow for Python 2.7: @@ -658,13 +658,13 @@ the custom binary protobuf pip package, invoke one of the following commands: * for Python 2.7: -
 $ pip install --upgrade \
-  https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp27-none-linux_x86_64.whl
+
$ pip install --upgrade \
+    https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp27-none-linux_x86_64.whl
* for Python 3.n: -
 $ pip3 install --upgrade \
-  https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp35-none-linux_x86_64.whl 
+
$ pip3 install --upgrade \
+    https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp35-none-linux_x86_64.whl 
Installing this protobuf package will overwrite the existing protobuf package. Note that the binary pip package already has support for protobufs -- cgit v1.2.3