【问题标题】:MySQL Connector not Working: NO module named ConnectorMySQL 连接器不工作:没有名为连接器的模块
【发布时间】:2018-05-15 07:04:09
【问题描述】:

操作系统:Ubuntu 17.10 蟒蛇:2.7

SUBLIME 文本 3:

我正在尝试导入 mysql.connector

ImportError:没有名为连接器的模块

虽然,当我尝试在 python shell 中导入 mysql.connector 时,它可以工作。

之前它运行良好,我刚刚升级了 Ubuntu,但不知何故 mysql 连接器 无法正常工作。

我尝试过使用 pip 和 git 重新安装 mysql 连接器。

还是没有运气。

请帮忙!

【问题讨论】:

    标签: python mysql ubuntu sublimetext3 mysql-connector


    【解决方案1】:

    我现在使用 Python 3.6,mysql.connector 最适合我。

    操作系统:Ubuntu 18.04

    【讨论】:

      【解决方案2】:

      我没有看到当前适用于 Ubuntu 17.10 的连接器版本。

      您是否尝试过替代连接?

      希望它会有所帮助: http://mysql-python.sourceforge.net/MySQLdb.html

      【讨论】:

        猜你喜欢
        • 2016-01-24
        • 2018-08-15
        • 2020-10-11
        • 1970-01-01
        • 2018-10-03
        • 2015-02-08
        • 2014-07-26
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多