Consistently use --upgrade instead of -U

This commit is contained in:
Mark Daoust 2018-07-19 07:26:50 -07:00
parent aa7960d918
commit 5bf5f09450

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">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">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">pip install -U --user tensorflow # Python 2.7</code> <code class="devsite-terminal">pip install --upgrade --user tensorflow # Python 2.7</code>
<code class="devsite-terminal">pip3 install -U --user 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.