diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-03-28 21:03:48 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-28 22:33:12 -0700 |
commit | f30918b3694afe844990cbddc82e27e023d88856 (patch) | |
tree | 896e887571178a42ff35e9c57772a307ddb1f131 | |
parent | 8e46bc5420217b6460f6aaae0a3616fe8a04cff8 (diff) |
Fixed some formatting issues in Installing TF on Linux and Installing TF on Mac OS.
Change: 151538676
-rw-r--r-- | tensorflow/docs_src/install/install_linux.md | 43 | ||||
-rw-r--r-- | 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: <pre>$ <b>sudo apt-get install python-pip python-dev python-virtualenv</b> # for Python 2.7 - $ <b>sudo apt-get install python3-pip python3-dev python-virtualenv</b> # for Python 3.n</pre> + $ <b>sudo apt-get install python3-pip python3-dev python-virtualenv</b> # for Python 3.n</pre> 2. Create a virtualenv environment by issuing one of the following commands: - <pre>$ <b>virtualenv --system-site-packages</b> <i>targetDirectory</i> # for Python 2.7 </pre> - $ <b>virtualenv --system-site-packages -p python3</b> <i>targetDirectory</i> # for Python 3.n</pre> + <pre>$ <b>virtualenv --system-site-packages</b> <i>targetDirectory</i> # for Python 2.7 + $ <b>virtualenv --system-site-packages -p python3</b> <i>targetDirectory</i> # for Python 3.n</pre> - The <code><em>targetDirectory</em></code> specifies the top of the + where <code><em>targetDirectory</em></code> specifies the top of the virtualenv tree. Our instructions assume that - <code><em>targetDirectory</em></code> is `~/tensorflow`, but you may choose any directory. + <code><em>targetDirectory</em></code> 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: - <pre> (tensorflow)$ <b>pip install --upgrade</b> <i>TF_PYTHON_URL</i> # Python 2.7 - (tensorflow)$ <b>pip3 install --upgrade</b> <i>TF_PYTHON_URL</i> # Python 3.n </pre> + <pre> (tensorflow)$ <b>pip install --upgrade</b> <i>tfBinaryURL</i> # Python 2.7 + (tensorflow)$ <b>pip3 install --upgrade</b> <i>tfBinaryURL</i> # Python 3.n </pre> - where <code><em>TF_PYTHON_URL</em></code> identifies the URL of the + where <code><em>tfBinaryURL</em></code> identifies the URL of the TensorFlow Python package. The appropriate value of - <code><em>TF_PYTHON_URL</em></code>depends on the operating system, + <code><em>tfBinaryURL</em></code>depends on the operating system, Python version, and GPU support. Find the appropriate value for - <code><em>TF_PYTHON_URL</em></code> for your system + <code><em>tfBinaryURL</em></code> 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: <pre> (tensorflow)$ <b>pip install --upgrade \\ - https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl</pre> + https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl</b></pre> 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: -<pre> $ <b>sudo apt-get install python-pip python-dev</b> # for Python 2.7 +<pre>$ <b>sudo apt-get install python-pip python-dev</b> # for Python 2.7 $ <b>sudo apt-get install python3-pip python3-dev</b> # for Python 3.n </pre> @@ -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: - <pre> $ <b>sudo pip install --upgrade</b> <i>TF_BINARY_URL</i> # Python 2.7 - $ <b>sudo pip3 install --upgrade</b> <i>TF_BINARY_URL</i> # Python 3.n </pre> + <pre> $ <b>sudo pip install --upgrade</b> <i>tfBinaryURL</i> # Python 2.7 + $ <b>sudo pip3 install --upgrade</b> <i>tfBinaryURL</i> # Python 3.n </pre> - where <code><em>TF_PYTHON_URL</em></code> identifies the URL of the + where <code><em>tfBinaryURL</em></code> identifies the URL of the TensorFlow Python package. The appropriate value of - <code><em>TF_BINARY_URL</em></code> depends on the operating system, + <code><em>tfBinaryURL</em></code> depends on the operating system, Python version, and GPU support. Find the appropriate value for - <code><em>TF_BINARY_URL</em></code> + <code><em>tfBinaryURL</em></code> [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</b></pre> 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: - <pre> (tensorflow)$ <b>pip install --ignore-installed --upgrade</b> <i>TF_PYTHON_URL</i></pre> + <pre> (tensorflow)$ <b>pip install --ignore-installed --upgrade</b> <i>tfBinaryURL</i></pre> - where <code><em>TF_PYTHON_URL</em></code> is the + where <code><em>tfBinaryURL</em></code> 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: $ <b>virtualenv --system-site-packages -p python3</b> <i>targetDirectory</i> # for Python 3.n </pre> - The <i>targetDirectory</i> identifies the top of the virtualenv tree. + where <i>targetDirectory</i> identifies the top of the virtualenv tree. Our instructions assume that <i>targetDirectory</i> is `~/tensorflow`, but you may choose any directory. 4. Activate the virtualenv environment by issuing one of the following commands: - <pre> $ <b>source ~/tensorflow/bin/activate</b> # If using bash, sh, ksh, or zsh - $ <b>source ~/tensorflow/bin/activate.csh</b> # If using csh or tcsh </pre> + <pre>$ <b>source ~/tensorflow/bin/activate</b> # If using bash, sh, ksh, or zsh + $ <b>source ~/tensorflow/bin/activate.csh</b> # If using csh or tcsh </pre> 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: - <pre> $ <b>pip install --upgrade</b> <i>TF_BINARY_URL</i> # Python 2.7 - $ <b>pip3 install --upgrade</b> <i>TF_BINARY_URL</i> # Python 3.n </pre> + <pre> $ <b>pip install --upgrade</b> <i>tfBinaryURL</i> # Python 2.7 + $ <b>pip3 install --upgrade</b> <i>tfBinaryURL</i> # Python 3.n </pre> - where <i>TF_BINARY_URL</i> identifies the URL + where <i>tfBinaryURL</i> identifies the URL of the TensorFlow Python package. The appropriate value of - <i>TF_BINARY_URL</i> depends on the operating system, + <i>tfBinaryURL</i> depends on the operating system, Python version, and GPU support. Find the appropriate value for - <i>TF_BINARY_URL</i> for your system + <i>tfBinaryURL</i> 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: -<pre> $ <b>source ~/tensorflow/bin/activate</b> # bash, sh, ksh, or zsh +<pre>$ <b>source ~/tensorflow/bin/activate</b> # bash, sh, ksh, or zsh $ <b>source ~/tensorflow/bin/activate.csh</b> # csh or tcsh </pre> 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: - <pre>$ <b>pip install tensorflow</b> # Python 2.7; CPU support (no GPU support) + <pre> $ <b>pip install tensorflow</b> # Python 2.7; CPU support (no GPU support) $ <b>pip3 install tensorflow</b> # Python 3.n; CPU support (no GPU support) $ <b>pip install tensorflow-gpu</b> # Python 2.7; GPU support $ <b>pip3 install tensorflow-gpu</b> # Python 3.n; GPU support </pre> @@ -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: - <pre>$ <b>sudo pip install --upgrade</b> <i>TF_BINARY_URL</i> # Python 2.7 - $ <b>sudo pip3 install --upgrade</b> <i>TF_BINARY_URL</i> # Python 3.n </pre> + <pre> $ <b>sudo pip install --upgrade</b> <i>tfBinaryURL</i> # Python 2.7 + $ <b>sudo pip3 install --upgrade</b> <i>tfBinaryURL</i> # Python 3.n </pre> - where <i>TF_BINARY_URL</i> identifies the URL of the TensorFlow Python - package. The appropriate value of <i>TF_BINARY_URL</i> depends on the + where <i>tfBinaryURL</i> identifies the URL of the TensorFlow Python + package. The appropriate value of <i>tfBinaryURL</i> depends on the operating system, Python version, and GPU support. Find the appropriate - value for <i>TF_BINARY_URL</i> + value for <i>tfBinaryURL</i> [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: - <pre>(tensorflow)<b>$ pip install --ignore-installed --upgrade $TF_PYTHON_URL</b></pre> + <pre>(tensorflow)<b>$ pip install --ignore-installed --upgrade</b> <i>TF_PYTHON_URL</i></pre> - where `TF_PYTHON_URL` is the + where <i>TF_PYTHON_URL</i> 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: - <pre> $ <b>pip install --upgrade \ - https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp27-none-linux_x86_64.whl</b></pre> + <pre>$ <b>pip install --upgrade \ + https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp27-none-linux_x86_64.whl</b></pre> * for Python 3.n: - <pre> $ <b>pip3 install --upgrade \ - https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp35-none-linux_x86_64.whl</b> </pre> + <pre>$ <b>pip3 install --upgrade \ + https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp35-none-linux_x86_64.whl</b> </pre> Installing this protobuf package will overwrite the existing protobuf package. Note that the binary pip package already has support for protobufs |