Python Mysql

1. 升级PIP

python -m pip install --upgrade pip

 

2. 安装mysql-python, 

pip install mysql-python失败,pip install pymysql成功

https://blog.csdn.net/bijiaoshenqi/article/details/44758055

https://blog.csdn.net/weixin_34402408/article/details/89896729

下载驱动后安装  https://pypi.python.org/pypi/MySQL-python/1.2.5

 

注意Python2和Python3的区别,,2为MySQLdb, 3为pymysql

 

你可能感兴趣的:(Python Mysql)