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

 

posted @ 2020-04-11 19:48  大漠孤烟~  阅读(473)  评论(0编辑  收藏  举报