# 安装 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

 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-03-10
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
猜你喜欢
  • 2021-11-19
  • 2021-07-22
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
相关资源
相似解决方案