Ubuntu 16.4 pip3的安装、升级和卸载

安装pip3

1
sudo apt-get install python3-pip

查看版本

1
2
root@localhost:/work/# pip3 -V
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)

升级

1
sudo pip3 install --upgrade pip

卸载

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
root@localhost:/work/btcgwserver# sudo apt-get remove python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
golang-1.6-go golang-1.6-race-detector-runtime golang-1.6-src golang-race-detector-runtime golang-src libpython3-dev libpython3.5-dev python3-dev python3-wheel python3.5-dev
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
python3-pip
0 upgraded, 0 newly installed, 1 to remove and 39 not upgraded.
After this operation, 569 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 125477 files and directories currently installed.)
Removing python3-pip (8.1.1-2ubuntu0.4) ...
Processing triggers for man-db (2.7.5-1) ...