yum如何管理Python2和Python3的包?

由于项目需要,服务器上同时安装了Python2和Python3。而使用yum安装的模块,如MySQLdb,在Python2环境中可以正常使用,在Python3中却说未安装该模块;

在 python3 中mysqldb已经弃用了,在python3中pymysql,安装方法pip3 install PyMySQL