首页 > 代码库 > dmp初始化脚本添加setuptools、MySQLdb、mysql-connector模块

dmp初始化脚本添加setuptools、MySQLdb、mysql-connector模块

dmp初始化脚本添加setuptools、MySQLdb、mysql-connector模块

1、下载安装模块

2、python setup.py install

3、检查

[root@01 ~]# 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()


本文出自 “梅花香自苦寒来!” 博客,请务必保留此出处http://daixuan.blog.51cto.com/5426657/1909143

dmp初始化脚本添加setuptools、MySQLdb、mysql-connector模块