windows安装mysql connector/python
1、打开命令行窗口CMD

2、命令行窗口查看python版本

3、命令行窗口输入
pip install mysql-connector

4、安装最新版本mysql-connector如果报错
命令行窗口输入
pip install mysql-connector==2.1.6
指定安装版本

5、安装如果依旧报错
命令行窗口输入
pip install mysql-connector==2.1.6 -i https://pypi.tuna.tsinghua.edu.cn/simple
加上镜像地址

6、验证是否安装成功

阅读量:79
阅读量:28
阅读量:85
阅读量:32
阅读量:115