提交 9ee1e726 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Sync the "Validate your Installation" sections

Change: 150006513
上级 2dbadb25
......@@ -489,31 +489,27 @@ $ <b>docker run -it gcr.io/tensorflow/tensorflow bash</b>
Invoke python from your shell as follows:
<pre>
$ <b>python</b>
</pre>
<pre>$ <b>python</b></pre>
Then, enter the following short program inside the python interactive shell:
Enter the following short program inside the python interactive shell:
<pre>
>>> <b>import tensorflow as tf</b>
>>> <b>hello = tf.constant('Hello, TensorFlow!')</b>
>>> <b>sess = tf.Session()</b>
>>> <b>print(sess.run(hello))</b>
</pre>
```python
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
```
If the system outputs the following, then you are ready to begin
running TensorFlow programs:
If the system outputs the following, then you are ready to begin writing
TensorFlow programs:
<pre>Hello, TensorFlow!</pre>
If you are new to TensorFlow, see @{$get_started$Getting Started with TensorFlow}.
If the system outputs an error message instead of a greeting, see
[Common installation problems](#CommonInstallationProblems).
If the system outputs an error message instead of a greeting, see [Common
installation problems](#common_installation_problems).
<a name="CommonInstallationProblems"></a>
## Common installation problems
We are relying on Stack Overflow to document TensorFlow installation problems
......
......@@ -451,10 +451,8 @@ If you are new to TensorFlow, see
@{$get_started$Getting Started with TensorFlow}.
If the system outputs an error message instead of a greeting, see
[Common installation problems](#CommonInstallationProblems).
[Common installation problems](#common_installation_problems).
<a name="CommonInstallationProblems"></a>
## Common installation problems
We are relying on Stack Overflow to document TensorFlow installation problems
......
......@@ -315,7 +315,7 @@ $ <b>bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pk
## Install the pip package
Invoke `pip install` to install that pip package.
The filename of the `.whl `file depends on your platform.
The filename of the `.whl` file depends on your platform.
For example, the following command will install the pip package
for TensorFlow 1.0.1 on Linux:
......@@ -327,37 +327,38 @@ $ <b>sudo pip install /tmp/tensorflow_pkg/tensorflow-1.0.1-py2-none-any.whl</b>
available on the TensorFlow website are built with gcc4 that uses the older ABI.
To make the library compatible with the older abi you have to add `-cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"`
<a name="#ValidateYourInstallation"></a>
## Validate your installation
Validate your TensorFlow installation by doing the following:
1. Start a terminal.
Start a terminal.
2. Change directory (`cd`) to any directory on your system other than
the `tensorflow` subdirectory from which you invoked the `configure`
command.
Change directory (`cd`) to any directory on your system other than the
`tensorflow` subdirectory from which you invoked the `configure` command.
3. Invoke python:
Invoke python:
<pre> $ <b>python</b></pre>
<pre>$ <b>python</b></pre>
4. Enter the following short program inside the python interactive shell:
Enter the following short program inside the python interactive shell:
<pre>>>> <b>import tensorflow as tf</b>
>>> <b>hello = tf.constant('Hello, TensorFlow!')</b>
>>> <b>sess = tf.Session()</b>
>>> <b>print(sess.run(hello))</b></pre>
```python
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
```
If the Python program outputs the following, then the installation
is successful and you can begin writing TensorFlow programs. (If you
are new to TensorFlow, see *Getting Started with TensorFlow*):
If the system outputs the following, then you are ready to begin writing
TensorFlow programs:
<pre>Hello, TensorFlow!</pre>
<pre>Hello, TensorFlow!</pre>
If the system generates an error message instead of a greeting, see
the next section.
If you are new to TensorFlow, see @{$get_started$Getting Started with
TensorFlow}.
If the system outputs an error message instead of a greeting, see [Common
installation problems](#common_installation_problems).
## Common installation problems
......
......@@ -121,35 +121,35 @@ Take the following steps to install TensorFlow in an Anaconda environment:
<pre>(tensorflow)C:\> <b>pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl</b> </pre>
<a name="#ValidateYourInstallation"></a>
## Validate your installation
Validate your TensorFlow installation by doing the following:
Start a terminal.
1. Start a terminal.
2. If you installed through Anaconda, activate your Anaconda environment.
3. Inside that terminal, invoke python:
If you installed through Anaconda, activate your Anaconda environment.
<pre>C:\> <b>python</b> </pre>
Invoke python from your shell as follows:
4. Enter the following short program inside the python interactive shell:
<pre>$ <b>python</b></pre>
<pre>>>> <b>import tensorflow as tf</b>
>>> <b>hello = tf.constant('Hello, TensorFlow!')</b>
>>> <b>sess = tf.Session()</b>
>>> <b>print(sess.run(hello))</b>
</pre>
Enter the following short program inside the python interactive shell:
If the Python program outputs the following, then the installation
is successful and you can begin writing TensorFlow programs. (If you
are new to TensorFlow, see
@{$get_started$Getting Started with TensorFlow}.)
```python
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
```
<pre>Hello, TensorFlow!</pre>
If the system outputs the following, then you are ready to begin writing
TensorFlow programs:
If the system generates an error message instead of a greeting,
see the next section.
<pre>Hello, TensorFlow!</pre>
If you are new to TensorFlow, see @{$get_started$Getting Started with
TensorFlow}.
If the system outputs an error message instead of a greeting, see [Common
installation problems](#common_installation_problems).
## Common installation problems
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册