Merge pull request #20927 from wimglenn:no_sudo

PiperOrigin-RevId: 205283751
This commit is contained in:
TensorFlower Gardener 2018-07-19 12:38:27 -07:00
commit 0399e0cf13

View File

@ -65,7 +65,7 @@ We *recommend* using `pip` version 8.1 or higher. If using a release before
version 8.1, upgrade `pip`: version 8.1, upgrade `pip`:
<pre class="prettyprint lang-bsh"> <pre class="prettyprint lang-bsh">
<code class="devsite-terminal">sudo pip install -U pip</code> <code class="devsite-terminal">pip install --upgrade pip</code>
</pre> </pre>
If not using Ubuntu and [setuptools](https://pypi.org/project/setuptools/) is If not using Ubuntu and [setuptools](https://pypi.org/project/setuptools/) is
@ -102,7 +102,7 @@ When the Virtualenv is activated, the shell prompt displays as `(venv) $`.
Within the active virtual environment, upgrade `pip`: Within the active virtual environment, upgrade `pip`:
<pre class="prettyprint lang-bsh"> <pre class="prettyprint lang-bsh">
(venv)$ pip install -U pip (venv)$ pip install --upgrade pip
</pre> </pre>
You can install other Python packages within the virtual environment without You can install other Python packages within the virtual environment without
@ -120,7 +120,7 @@ Choose one of the available TensorFlow packages for installation:
Within an active Virtualenv environment, use `pip` to install the package: Within an active Virtualenv environment, use `pip` to install the package:
<pre class="prettyprint lang-bsh"> <pre class="prettyprint lang-bsh">
<code class="devsite-terminal">pip install -U tensorflow</code> <code class="devsite-terminal">pip install --upgrade tensorflow</code>
</pre> </pre>
Use `pip list` to show the packages installed in the virtual environment. Use `pip list` to show the packages installed in the virtual environment.
@ -198,7 +198,7 @@ We *recommend* using `pip` version 8.1 or higher. If using a release before
version 8.1, upgrade `pip`: version 8.1, upgrade `pip`:
<pre class="prettyprint lang-bsh"> <pre class="prettyprint lang-bsh">
<code class="devsite-terminal">sudo pip install -U pip</code> <code class="devsite-terminal">pip install --upgrade pip</code>
</pre> </pre>
If not using Ubuntu and [setuptools](https://pypi.org/project/setuptools/) is If not using Ubuntu and [setuptools](https://pypi.org/project/setuptools/) is
@ -220,8 +220,8 @@ Choose one of the available TensorFlow packages for installation:
And use `pip` to install the package for Python 2 or 3: And use `pip` to install the package for Python 2 or 3:
<pre class="prettyprint lang-bsh"> <pre class="prettyprint lang-bsh">
<code class="devsite-terminal">sudo pip install -U tensorflow # Python 2.7</code> <code class="devsite-terminal">pip install --upgrade --user tensorflow # Python 2.7</code>
<code class="devsite-terminal">sudo pip3 install -U tensorflow # Python 3.n</code> <code class="devsite-terminal">pip3 install --upgrade --user tensorflow # Python 3.n</code>
</pre> </pre>
Use `pip list` to show the packages installed on the system. Use `pip list` to show the packages installed on the system.
@ -239,8 +239,8 @@ If the above steps failed, try installing the TensorFlow binary using the remote
URL of the `pip` package: URL of the `pip` package:
<pre class="prettyprint lang-bsh"> <pre class="prettyprint lang-bsh">
<code class="devsite-terminal">sudo pip install --upgrade <var>remote-pkg-URL</var> # Python 2.7</code> <code class="devsite-terminal">pip install --user --upgrade <var>remote-pkg-URL</var> # Python 2.7</code>
<code class="devsite-terminal">sudo pip3 install --upgrade <var>remote-pkg-URL</var> # Python 3.n</code> <code class="devsite-terminal">pip3 install --user --upgrade <var>remote-pkg-URL</var> # Python 3.n</code>
</pre> </pre>
The <var>remote-pkg-URL</var> depends on the operating system, Python version, The <var>remote-pkg-URL</var> depends on the operating system, Python version,
@ -255,8 +255,8 @@ encounter problems.
To uninstall TensorFlow on your system, use one of following commands: To uninstall TensorFlow on your system, use one of following commands:
<pre class="prettyprint lang-bsh"> <pre class="prettyprint lang-bsh">
<code class="devsite-terminal">sudo pip uninstall tensorflow # for Python 2.7</code> <code class="devsite-terminal">pip uninstall tensorflow # for Python 2.7</code>
<code class="devsite-terminal">sudo pip3 uninstall tensorflow # for Python 3.n</code> <code class="devsite-terminal">pip3 uninstall tensorflow # for Python 3.n</code>
</pre> </pre>
<a name="InstallingDocker"></a> <a name="InstallingDocker"></a>