gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 01:55:59 25 4
gpt4 key购买 nike

我尝试使用

安装 mysql-connector python

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

最佳答案

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

关于python - python3.2不支持mysql-connector-python?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29303266/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com