From aa7960d9187131039b7122f66e60dd89dd5a90bb Mon Sep 17 00:00:00 2001 From: wim glenn Date: Wed, 18 Jul 2018 10:12:16 -0500 Subject: [PATCH 1/3] Recommend the user site, no sudo --- tensorflow/docs_src/install/install_linux.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tensorflow/docs_src/install/install_linux.md b/tensorflow/docs_src/install/install_linux.md index 7534d0fac11..0d9b6af0933 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`:
-  sudo pip install -U pip
+  pip install -U pip
 
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`:
-  sudo pip install -U pip
+  pip install -U pip
 
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:
-  sudo pip install -U tensorflow   # Python 2.7
-  sudo pip3 install -U tensorflow  # Python 3.n
+  pip install -U --user tensorflow   # Python 2.7
+  pip3 install -U --user tensorflow  # Python 3.n
 
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:
-  sudo pip install --upgrade remote-pkg-URL   # Python 2.7
-  sudo pip3 install --upgrade remote-pkg-URL  # Python 3.n
+  pip install --user --upgrade remote-pkg-URL   # Python 2.7
+  pip3 install --user --upgrade remote-pkg-URL  # Python 3.n
 
The remote-pkg-URL depends on the operating system, Python version, @@ -255,8 +255,8 @@ encounter problems. To uninstall TensorFlow on your system, use one of following commands:
-  sudo pip uninstall tensorflow   # for Python 2.7
-  sudo pip3 uninstall tensorflow  # for Python 3.n
+  pip uninstall tensorflow   # for Python 2.7
+  pip3 uninstall tensorflow  # for Python 3.n
 
From 5bf5f09450f153b1f35030e91b18bf56499a85d7 Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Thu, 19 Jul 2018 07:26:50 -0700 Subject: [PATCH 2/3] Consistently use `--upgrade` instead of `-U` --- tensorflow/docs_src/install/install_linux.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tensorflow/docs_src/install/install_linux.md b/tensorflow/docs_src/install/install_linux.md index 0d9b6af0933..84f7cc1c31b 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`:
-  pip install -U pip
+  pip install --upgrade pip
 
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`:
-(venv)$ pip install -U pip
+(venv)$ pip install --upgrade pip
 
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:
-  pip install -U tensorflow
+  pip install --upgrade tensorflow
 
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`:
-  pip install -U pip
+  pip install --upgrade pip
 
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:
-  pip install -U --user tensorflow   # Python 2.7
-  pip3 install -U --user tensorflow  # Python 3.n
+  pip install --upgrade --user tensorflow   # Python 2.7
+  pip3 install -upgrade --user tensorflow  # Python 3.n
 
Use `pip list` to show the packages installed on the system. From 7b0c47e59e2af9d28b453609497548cb4fbdc6df Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Thu, 19 Jul 2018 07:36:49 -0700 Subject: [PATCH 3/3] fix typo I added. --- tensorflow/docs_src/install/install_linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/docs_src/install/install_linux.md b/tensorflow/docs_src/install/install_linux.md index 84f7cc1c31b..b0106ad4810 100644 --- a/tensorflow/docs_src/install/install_linux.md +++ b/tensorflow/docs_src/install/install_linux.md @@ -221,7 +221,7 @@ And use `pip` to install the package for Python 2 or 3:
   pip install --upgrade --user tensorflow   # Python 2.7
-  pip3 install -upgrade --user tensorflow  # Python 3.n
+  pip3 install --upgrade --user tensorflow  # Python 3.n
 
Use `pip list` to show the packages installed on the system.