python3.2不支持mysql-connector-python?

时间:2015-03-27 14:36:21

标签: python mysql mysql-connector-python

我尝试使用

安装mysql-connector python

pip install mysql-connector-python

pip install mysql-connector-python --allow-external mysql-connector-python

我收到以下错误,说不支持python v3.2。

    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/wolfgang/projects/python/python_backend/build/mysql-connector-python/setup.py", line 41, in <module>
        import setupinfo
      File "setupinfo.py", line 37, in <module>
        major=sys.version_info[0], minor=sys.version_info[1]
    RuntimeError: Python v3.2 is not supported
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/home/wolfgang/projects/python/python_backend/build/mysql-connector-python/setup.py", line 41, in <module>

    import setupinfo

  File "setupinfo.py", line 37, in <module>

    major=sys.version_info[0], minor=sys.version_info[1]

RuntimeError: Python v3.2 is not supported

----------------------------------------

我应该升级我的python版本吗?或者有解决方法吗?

1 个答案:

答案 0 :(得分:3)

Python 3.3中的2.x兼容性有了一些重要的改进,所以很多软件包只支持3.3+。 mysql-connector-python就是其中之一。没有大量的工作,你不太可能修复它。安装更高版本会容易得多。