Recommend the user site, no sudo
This commit is contained in:
parent
9b3a29889f
commit
aa7960d918
@ -65,7 +65,7 @@ We *recommend* using `pip` version 8.1 or higher. If using a release before
|
||||
version 8.1, upgrade `pip`:
|
||||
|
||||
<pre class="prettyprint lang-bsh">
|
||||
<code class="devsite-terminal">sudo pip install -U pip</code>
|
||||
<code class="devsite-terminal">pip install -U pip</code>
|
||||
</pre>
|
||||
|
||||
If not using Ubuntu and [setuptools](https://pypi.org/project/setuptools/) is
|
||||
@ -198,7 +198,7 @@ We *recommend* using `pip` version 8.1 or higher. If using a release before
|
||||
version 8.1, upgrade `pip`:
|
||||
|
||||
<pre class="prettyprint lang-bsh">
|
||||
<code class="devsite-terminal">sudo pip install -U pip</code>
|
||||
<code class="devsite-terminal">pip install -U pip</code>
|
||||
</pre>
|
||||
|
||||
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:
|
||||
|
||||
<pre class="prettyprint lang-bsh">
|
||||
<code class="devsite-terminal">sudo pip install -U tensorflow # Python 2.7</code>
|
||||
<code class="devsite-terminal">sudo pip3 install -U tensorflow # Python 3.n</code>
|
||||
<code class="devsite-terminal">pip install -U --user tensorflow # Python 2.7</code>
|
||||
<code class="devsite-terminal">pip3 install -U --user tensorflow # Python 3.n</code>
|
||||
</pre>
|
||||
|
||||
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:
|
||||
|
||||
<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">sudo pip3 install --upgrade <var>remote-pkg-URL</var> # Python 3.n</code>
|
||||
<code class="devsite-terminal">pip install --user --upgrade <var>remote-pkg-URL</var> # Python 2.7</code>
|
||||
<code class="devsite-terminal">pip3 install --user --upgrade <var>remote-pkg-URL</var> # Python 3.n</code>
|
||||
</pre>
|
||||
|
||||
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:
|
||||
|
||||
<pre class="prettyprint lang-bsh">
|
||||
<code class="devsite-terminal">sudo 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">pip uninstall tensorflow # for Python 2.7</code>
|
||||
<code class="devsite-terminal">pip3 uninstall tensorflow # for Python 3.n</code>
|
||||
</pre>
|
||||
|
||||
<a name="InstallingDocker"></a>
|
||||
|
Loading…
Reference in New Issue
Block a user