直接使用pip进行安装:
[root@mycentos ~]#pip install pymysql
Linux下安装pymysql
原文:https://www.cnblogs.com/hunttown/p/9828754.html