2、python setup.py install3、检查[root@01 ~]# pythonPython 2.7.3 (default, Jun 2 2016, 03:21:46) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import MySQLdb>>> print MySQLdb._version_1.2.3>>> import mysql.connector>>> exit()本文出自 “梅花香自苦寒来!” 博客,请务必保留此出处http://daixuan.blog.51cto.com/5426657/1909143d...