# 1. 更新系统包
sudo apt-get update
sudo apt-get upgrade

# 2. 安装Pip
python2
sudo apt-get install python-pip
python3
sudo apt-get install python3-pip

# 3. 检查 pip 是否安装成功
pip -V
pip3 -V

pip 常用命令

  • 查看pip帮助:​​pip -help​
  • 安装新的python包:​​pip install packageName​
  • 卸载python包:​​pip uninstall packageName​
  • 寻找python包:​​pip search packageName​


​https://www.linuxidc.com/Linux/2018-05/152390.htm​