yongqiang@famu-sys:~$ sudo pip install tensorflow-gpu==1.4.0
WARNING: The directory '/home/yongqiang/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/yongqiang/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting tensorflow-gpu==1.4.0
Downloading https://files.pythonhosted.org/packages/3d/59/7b74db1ce032b5368d96d0b0965baa02b8d6a91726b4ed58be249c268e98/tensorflow_gpu-1.4.0-cp35-cp35m-manylinux1_x86_64.whl (170.1MB)
|████████████████████████████████| 170.1MB 2.2MB/s
Collecting protobuf>=3.3.0 (from tensorflow-gpu==1.4.0)
Downloading https://files.pythonhosted.org/packages/7c/d2/581ebc3c41879aca2c4fce5c37cdb8d779c4ea79109b6da7f640735ea0a2/protobuf-3.8.0-cp35-cp35m-manylinux1_x86_64.whl (1.2MB)
|████████████████████████████████| 1.2MB 3.6MB/s
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from tensorflow-gpu==1.4.0) (1.10.0)
Collecting tensorflow-tensorboard<0.5.0,>=0.4.0rc1 (from tensorflow-gpu==1.4.0)
Downloading https://files.pythonhosted.org/packages/e9/9f/5845c18f9df5e7ea638ecf3a272238f0e7671e454faa396b5188c6e6fc0a/tensorflow_tensorboard-0.4.0-py3-none-any.whl (1.7MB)
|████████████████████████████████| 1.7MB 3.7MB/s
Collecting enum34>=1.1.6 (from tensorflow-gpu==1.4.0)
Downloading https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl
Requirement already satisfied: numpy>=1.12.1 in /usr/local/lib/python3.5/dist-packages (from tensorflow-gpu==1.4.0) (1.16.4)
Requirement already satisfied: wheel>=0.26 in /usr/lib/python3/dist-packages (from tensorflow-gpu==1.4.0) (0.29.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf>=3.3.0->tensorflow-gpu==1.4.0) (20.7.0)
Collecting werkzeug>=0.11.10 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu==1.4.0)
Downloading https://files.pythonhosted.org/packages/9f/57/92a497e38161ce40606c27a86759c6b92dd34fcdb33f64171ec559257c02/Werkzeug-0.15.4-py2.py3-none-any.whl (327kB)
|████████████████████████████████| 327kB 3.7MB/s
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu==1.4.0)
Downloading https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz (889kB)
|████████████████████████████████| 890kB 3.4MB/s
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu==1.4.0)
Downloading https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1->tensorflow-gpu==1.4.0)
Downloading https://files.pythonhosted.org/packages/c0/4e/fd492e91abdc2d2fcb70ef453064d980688762079397f779758e055f6575/Markdown-3.1.1-py2.py3-none-any.whl (87kB)
|████████████████████████████████| 92kB 4.2MB/s
Building wheels for collected packages: html5lib
Building wheel for html5lib (setup.py) ... done
Stored in directory: /home/yongqiang/.cache/pip/wheels/50/ae/f9/d2b189788efcf61d1ee0e36045476735c838898eef1cad6e29
Successfully built html5lib
ERROR: markdown 3.1.1 has requirement setuptools>=36, but you'll have setuptools 20.7.0 which is incompatible.
Installing collected packages: protobuf, werkzeug, html5lib, bleach, markdown, tensorflow-tensorboard, enum34, tensorflow-gpu
Found existing installation: html5lib 0.999
Uninstalling html5lib-0.999:
Successfully uninstalled html5lib-0.999
Successfully installed bleach-1.5.0 enum34-1.1.6 html5lib-0.9999999 markdown-3.1.1 protobuf-3.8.0 tensorflow-gpu-1.4.0 tensorflow-tensorboard-0.4.0 werkzeug-0.15.4
yongqiang@famu-sys:~$
Uninstall python-setuptools
To remove just python-setuptools package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal:
sudo apt-get remove python-setuptools
Uninstall python-setuptools and it’s dependent packages
To remove the python-setuptools package and any other dependant package which are no longer needed from Ubuntu Xenial.
sudo apt-get remove --auto-remove python-setuptools
Purging python-setuptools
If you also want to delete configuration and/or data files of python-setuptools from Ubuntu Xenial then this will work:
sudo apt-get purge python-setuptools
To delete configuration and/or data files of python-setuptools and it’s dependencies from Ubuntu Xenial then execute:
sudo apt-get purge --auto-remove python-setuptools
yongqiang@famu-sys:~$ sudo apt-get update
......
yongqiang@famu-sys:~$ sudo apt-get remove python-setuptools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
python-pkg-resources
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
python-setuptools
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 366 个软件包未被升级。
解压缩后将会空出 530 kB 的空间。
您希望继续执行吗? [Y/n] Y
(正在读取数据库 ... 系统当前共安装有 196136 个文件和目录。)
正在卸载 python-setuptools (20.7.0-1) ...
yongqiang@famu-sys:~$
yongqiang@famu-sys:~$ sudo apt-get autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包将被【卸载】:
python-pkg-resources
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 366 个软件包未被升级。
解压缩后将会空出 452 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 196068 个文件和目录。)
正在卸载 python-pkg-resources (20.7.0-1) ...
yongqiang@famu-sys:~$
Installing python-setuptools package on Ubuntu 16.04 (Xenial Xerus) is as easy as running the following command on terminal:
sudo apt-get update
sudo apt-get install python-setuptools
使用 apt-get 无法将 setuptools 更新到 setuptools>=36 版本,选择使用 pip / pip2 / pip3 更新版本。
yongqiang@famu-sys:~$ sudo apt-get update
......
yongqiang@famu-sys:~$ sudo apt-get install python-setuptools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
建议安装:
python-setuptools-doc
下列【新】软件包将被安装:
python-setuptools
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 366 个软件包未被升级。
需要下载 169 kB 的归档。
解压缩后会消耗 530 kB 的额外空间。
获取:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 python-setuptools all 20.7.0-1 [169 kB]
已下载 169 kB,耗时 0秒 (259 kB/s)
正在选中未选择的软件包 python-setuptools。
(正在读取数据库 ... 系统当前共安装有 196069 个文件和目录。)
正准备解包 .../python-setuptools_20.7.0-1_all.deb ...
正在解包 python-setuptools (20.7.0-1) ...
正在设置 python-setuptools (20.7.0-1) ...
yongqiang@famu-sys:~$
sudo apt-get install python-setuptools 仍然是 20.7.0-1 版本。
yongqiang@famu-sys:~$ sudo apt-get remove python-setuptools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
python-pkg-resources
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
python-setuptools
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 366 个软件包未被升级。
解压缩后将会空出 530 kB 的空间。
您希望继续执行吗? [Y/n] Y
(正在读取数据库 ... 系统当前共安装有 196136 个文件和目录。)
正在卸载 python-setuptools (20.7.0-1) ...
yongqiang@famu-sys:~$
yongqiang@famu-sys:~$ sudo apt-get autoremove
......
yongqiang@famu-sys:~$
sudo pip install setuptools
sudo pip install setuptools==41.0.0
sudo pip install setuptools==39.0.0
yongqiang@famu-sys:~$ sudo pip install setuptools==39.0.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
WARNING: The directory '/home/yongqiang/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/yongqiang/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting setuptools==39.0.0
Downloading https://files.pythonhosted.org/packages/26/57/69f35fa2ee411cfa3557efa40f776992dffb54d8edd52e03ec0be5fb3bb9/setuptools-39.0.0-py2.py3-none-any.whl (569kB)
|████████████████████████████████| 573kB 189kB/s
Installing collected packages: setuptools
Successfully installed setuptools-39.0.0
yongqiang@famu-sys:~$
yongqiang@famu-sys:~$ sudo pip uninstall tensorflow-gpu
yongqiang@famu-sys:~$ sudo pip install tensorflow-gpu==1.4.0