要查看 MySQL Connector/Python 的版本,请使用以下命令:

import mysql.connector

print(mysql.connector.__version__)

要升级 MySQL Connector/Python,您可以使用以下命令:

pip install --upgrade mysql-connector-python

这将升级到最新版本。如果您希望升级到特定版本,请指定版本号:

pip install mysql-connector-python==<version>
MySQL Connector/Python 版本查看与升级方法

原文地址: https://www.cveoy.top/t/topic/ofUe 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录