在Centos7(Linux)上安装pip工具-日常笔记

众做周知,pip是用来安装、管理Python包的工具,那我们愉快的安装它吧!

一、安装方法1

1、安装EPEL源

sudo yum install epel-release -y

2、更新系统源

sudo yum update -y

3、安装python-pip工具

sudo yum -y install python-pip

4、确认安装

pip -V
pip -help

5、更新pip

pip install --upgrade pip

 

二、安装方法2

使用curl python 安装

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py

三、通过pip安装其它模块

例如安装psutil、django等

pip install psutil
pip install django