Linux-010-Centos 使用 yum 安装 pip

# 安装 PIP 扩展源 EPEL。EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。

yum -y install epel-release
yum -y install python-pip

# 使用 pip 安装 Python 模块,例如安装 pymsql 用于操作 mysql 数据库

pip install pymysql

# 验证是否安装成功

$ python

> import pymysql as pm

原文地址:https://www.cnblogs.com/fengpingfan/p/13861560.html