Ubuntu installation tensorflow prompt pip version is not correct

1 I installed tensorflow, on ubuntu16.04LTS, python version 2.7 / 3.5.2 with pip. The result indicates that piping is too old, and it is useless for me to update pip. The following is the error message

yc_qian@QYC:~$ sudo-H pip install tensorflow-- upgrade
Requirement already up-to-date: tensorflow in / usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: astor > = 0.6.0 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: protobuf > = 3.4.0 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: gast > = 0.2.0 in / usr/local / lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: tensorboard < 1.9.0, > = 1.8.0 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: six > = 1.10.0 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: wheel in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: absl-py > = 0.1.6 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already Up-to-date: backports.weakref > = 1.0rc1 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: termcolor > = 1.1.0 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: enum34 > = 1.1.6 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: numpy > = 1.13.3 in / usr/local/lib/python2.7/dist -packages (from tensorflow)
Requirement already up-to-date: grpcio > = 1.8.6 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: mock > = 2.0.0 in / usr/local/lib/python2.7/dist-packages (from tensorflow)
Requirement already up-to-date: setuptools in / usr/local/lib/python2.7/dist-packages (from protobuf > = 3.4.0-> tensorflow)
Requirement already up-to-date: werkzeug > = 0.11.10 in / usr / local/lib/python2.7/dist-packages (from tensorboard < 1.9.0, > = 1.8.0-> tensorflow)
Requirement already up-to-date: futures > = 3.1.1; Python_version < "3" in / usr/local/lib/python2.7/dist-packages (from tensorboard < 1.9.0, > = 1.8.0-> tensorflow)
Requirement already up-to-date: markdown > = 2.6.8 in / usr/local/lib/python2.7/dist-packages (from tensorboard < 1.9.0, > = 1.8.0-> tensorflow)
Requirement already up-to-date: html5lib==0.9999999 in / usr/local/lib/python2.7/dist-packages (from tensorboard < 1.9.0, > = 1.8.0-> tensorflow)
Requirement already up-to-date: bleach==1.5.0 in / usr/local/lib/python2.7/dist-packages (from tensorboard < 1.9.0, > = 1.8.0-> tensorflow)
Requirement already up-to-date: pbr > = 0.11 in / usr/local/lib/python2.7/dist-packages (from mock > = 2.0.0-> tensorflow)
Requirement already up-to-date: funcsigs > = 1; Python_version < "3.3" in / usr/local/lib/python2.7/dist-packages (from mock > = 2.0.0-> tensorflow)
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the "pip install-- upgrade pip" command.

I checked the version of pip:
yc_qian@QYC:~$ pip-V
pip 10.0.1 from / home/yc_qian/.local/lib/python3.5/site-packages/pip (python3.5)

to be on the safe side, I also read the version of pip3:
yc_qian@QYC:~$ pip3-V
pip 10.0.1 from / home/yc_qian/.local/lib/python3.5/site-packages/pip (python3.5)

Why does the installation of pip fail when it is clear that the tensorflow version is 10.0.1? Excuse me, what should I do?

Mar.25,2021

just now a friend in the comment area pointed out that it might be a problem with venv. I tried sudo pip3-V and sudo pip-V, and sure enough, the pip version number is 8. Because I use sudo to install tensorflow. Therefore, as long as sudo updates pip, you can


suggest using anaconda to install TF directly


< H2 > pip < / H2 >

you can try sudo pip-V. It must be 8.0.1
linux. I'm not very familiar with it either, but I know whether to add sudo installation. The location is not necessarily the same. If you install something on sudo, you may not be able to use it without su.

< H2 > TF < / H2 >

the following list of prompts when you install means,

all the dependent packages you want to install have been installed. By the way, your pip is still 8.0.1, and the latest version is 10.0.1. You can update it.

means that TF has been installed. However, in the SU environment.


this question has nothing to do with tensorflow:
take a look at the reminder:

You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The version of pip you are currently using is 8.1.1, but the latest version is 10.0.1.
you can (should) consider upgrading, but you can not upgrade ah, it does not affect!

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38ac5-2c113.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38ac5-2c113.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?