mysql-connector-python 在 python3.2 中不受支持?

mysql-connector-python is not supported in python3.2?

我尝试使用

安装 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 版本吗?或者有解决方法吗?

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