1、下载安装模块
2、python setup.py install
3、检查
[[email protected] ~]# python
Python 2.7.3 (default, Jun 2 2016, 03:21:46)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>> print MySQLdb._version_
1.2.3
>>> import mysql.connector
>>> exit()
时间: 2024-10-11 21:56:31