【问题标题】:Unable to Instal Mysql-connector Python2.0.2 for Python v3.4.2无法为 Python v3.4.2 安装 Mysql-connector Python2.0.2
【发布时间】:2015-01-31 22:48:29
【问题描述】:

我已经安装了 IDLE Python 3.4.2 并且我想为 Python 3.4 安装 MySQL-Connector 2.7。我已经从http://dev.mysql.com/downloads/connector/python/ 下载了 mysql-connector 2.7。我已经尝试安装了很多次,但它总是说“找不到 Python v3.4”,即使它已经在 Python 的系统和系统路径中也是正确的。请帮助我。

【问题讨论】:

    标签: python mysql python-3.x mysql-connector


    【解决方案1】:

    其实应该可以的

    1. get python connector from MySQL  
    2. unzip to a dir  
    3. cd dir  
    4. python setup.py install  
    

    在第 4 步中,它从系统 PATH 中搜索 python 命令并且应该可以找到。如果不是,那么我的猜测是路径设置不正确

    【讨论】:

    • 非常感谢。我刚刚重新安装了 python 并且它工作了。
    猜你喜欢
    • 2014-04-01
    • 2016-04-02
    • 1970-01-01
    • 2016-05-12
    • 2017-09-10
    • 2020-08-29
    • 2020-10-13
    • 2017-12-03
    相关资源
    最近更新 更多