欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

windows上安装mysql connector/python或者PyMySQL驱动

程序员文章站 2022-03-27 12:53:45
windows上安装mysql connector/python1、前提是你已经装好python:命令行输入”python“2、命令行退出python:3、执行命令:pip install mysql-connector系统会自动安装最新版本mysql-connector驱动,如果报错,可以加上版本号甚至镜像:pip install mysql-connector2.2.9或者:pip install mysql-connector2.2.9 -i https://pypi.tuna....

windows上安装mysql connector/python

1、前提是你已经装好python:命令行输入”python“
windows上安装mysql connector/python或者PyMySQL驱动
2、命令行退出python:
windows上安装mysql connector/python或者PyMySQL驱动
3、执行命令:pip install mysql-connector
windows上安装mysql connector/python或者PyMySQL驱动
系统会自动安装最新版本mysql-connector驱动,如果报错,可以加上版本号甚至镜像:

pip install mysql-connector2.2.9
或者:
pip install mysql-connector
2.2.9 -i https://pypi.tuna.tsinghua.edu.cn/simple

windows上安装mysql connector/python或者PyMySQL驱动

4、若仍报错无法安装成功,只能下载后安装了:
https://dev.mysql.com/downloads/connector/python/
windows上安装mysql connector/python或者PyMySQL驱动
windows上安装mysql connector/python或者PyMySQL驱动

download后提示无法安装成功,真遗憾,那就安装PyMySQL驱动吧:
5、命令行输入:pip3 install PyMySQL
windows上安装mysql connector/python或者PyMySQL驱动
验证是否安装成功:
windows上安装mysql connector/python或者PyMySQL驱动
安装PyMySQL驱动成功!

本文地址:https://blog.csdn.net/duanchaoxuan/article/details/110490617

相关标签: python