pymysql3.0.5下載地址:https://pypi.python.org/packages/source/P/PyMySQL3/PyMySQL3-0.5.tar.gzpython
[root@localhost]# tar xfz PyMySQL3-0.5.tar.gzmysql
[root@localhost]# cd PyMySQL3-0.5 #進入PyMySQL3目錄,查看site.cfg文件的mysql-config配置,若是與實際不符合,請自行修改sql
[root@localhost]# python setup.py build #注意啦,這一步是必定要作的,否則就安裝不成功。ui
[root@localhost]# python setup.py install #正式安裝get
而後進入:python import pymysqlit