欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubuntu 16.04 desktop + server LTS - pip3 install & uninstall

程序员文章站 2022-07-14 13:31:19
...

ubuntu 16.04 desktop + server LTS - pip3 install & uninstall

1. install

sudo apt install python3-pip

2. uninstall

sudo apt autoremove python3-pip

[email protected]:~$ pip3
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
[email protected]:~$ 
[email protected]:~$ sudo apt install python3-pip
[sudo] password for strong: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
  libasound2:i386 libdbus-1-3:i386 libexpat1:i386 libfontconfig1:i386
  libfreetype6:i386 libice6:i386 libjpeg62:i386 libllvm4.0 libpng12-0:i386
  libsm6:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdamage1:i386
  libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxinerama1:i386
  libxrandr2:i386 libxrender1:i386 libxtst6:i386 linux-headers-4.10.0-40
  linux-headers-4.10.0-40-generic linux-headers-4.10.0-42
  linux-headers-4.10.0-42-generic linux-headers-4.13.0-26
  linux-headers-4.13.0-26-generic linux-headers-4.13.0-31
  linux-headers-4.13.0-31-generic linux-headers-4.13.0-32
  linux-headers-4.13.0-32-generic linux-headers-4.13.0-36
  linux-headers-4.13.0-36-generic linux-headers-4.13.0-37
  linux-headers-4.13.0-37-generic linux-headers-4.13.0-38
  linux-headers-4.13.0-38-generic linux-headers-4.13.0-39
  linux-headers-4.13.0-39-generic linux-image-4.10.0-40-generic
  linux-image-4.10.0-42-generic linux-image-4.13.0-26-generic
  linux-image-4.13.0-31-generic linux-image-4.13.0-32-generic
  linux-image-4.13.0-36-generic linux-image-4.13.0-37-generic
  linux-image-4.13.0-38-generic linux-image-4.13.0-39-generic
  linux-image-extra-4.10.0-40-generic linux-image-extra-4.10.0-42-generic
  linux-image-extra-4.13.0-26-generic linux-image-extra-4.13.0-31-generic
  linux-image-extra-4.13.0-32-generic linux-image-extra-4.13.0-36-generic
  linux-image-extra-4.13.0-37-generic linux-image-extra-4.13.0-38-generic
  linux-image-extra-4.13.0-39-generic linux-signed-image-4.10.0-40-generic
  linux-signed-image-4.10.0-42-generic linux-signed-image-4.13.0-26-generic
  linux-signed-image-4.13.0-31-generic linux-signed-image-4.13.0-32-generic
  linux-signed-image-4.13.0-36-generic linux-signed-image-4.13.0-37-generic
  linux-signed-image-4.13.0-38-generic linux-signed-image-4.13.0-39-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded.
[email protected]:~$
[email protected]:~$ sudo apt autoremove python3-pip
[sudo] password for strong: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  python3-pip python3-wheel
0 upgraded, 0 newly installed, 2 to remove and 241 not upgraded.
After this operation, 780 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 276226 files and directories currently installed.)
Removing python3-pip (8.1.1-2ubuntu0.4) ...
Removing python3-wheel (0.29.0-1) ...
Processing triggers for man-db (2.7.5-1) ...
[email protected]:~$