用 Python 3.6 连接 MySQL [英] Connect MySQL with Python 3.6

查看:21
本文介绍了用 Python 3.6 连接 MySQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个使用 Python 3.6 连接到 MySQL 的库.我发现的所有库都只适用于旧版本的 Python.遗憾的是,我无法更改为较旧的 Python 版本,因为我需要一些 Python 3.6 中引入的函数.

I'm looking for a library to connect to MySQL with Python 3.6. All libraries I found did only work with older versions of Python. Sadly I can't change to an older Python version because i need some functions, which are introduced in Python 3.6.

我在树莓派 pi3 上编程,但我认为这不会改变任何事情.

I am programming on a raspberry pi3, but I don't think this should change anything.

感谢您的帮助!

推荐答案

mysqlclient 正式支持python3.6.

mysqlclient supports python3.6 officially.

https://pypi.python.org/pypi/mysqlclient

这篇关于用 Python 3.6 连接 MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆