diff options
author | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-19 12:38:27 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-19 12:38:34 -0700 |
commit | 0399e0cf13deaed9fb9e6dcf1af2c378579e817e (patch) | |
tree | 628e73c63e4fe9d8748355e6bf9078fb2dc6972b /tensorflow/docs_src | |
parent | e9869ece182be721dc07fe8ecb7c7288f2fce90f (diff) | |
parent | 7b0c47e59e2af9d28b453609497548cb4fbdc6df (diff) |
Merge pull request #20927 from wimglenn:no_sudo
PiperOrigin-RevId: 205283751
Diffstat (limited to 'tensorflow/docs_src')
-rw-r--r-- | tensorflow/docs_src/install/install_linux.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tensorflow/docs_src/install/install_linux.md b/tensorflow/docs_src/install/install_linux.md index 7534d0fac1..b0106ad481 100644 --- a/tensorflow/docs_src/install/install_linux.md +++ b/tensorflow/docs_src/install/install_linux.md @@ -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 --upgrade pip</code> </pre> 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`: <pre class="prettyprint lang-bsh"> -(venv)$ pip install -U pip +(venv)$ pip install --upgrade pip </pre> 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: <pre class="prettyprint lang-bsh"> - <code class="devsite-terminal">pip install -U tensorflow</code> + <code class="devsite-terminal">pip install --upgrade tensorflow</code> </pre> 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`: <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> 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 --upgrade --user tensorflow # Python 2.7</code> + <code class="devsite-terminal">pip3 install --upgrade --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> |