简体   繁体   English

以下是我尝试在 pycharm 中安装“mysql-python”时产生的错误。 任何帮助都会很棒

[英]Following is the error produced when I try to install "mysql-python" in pycharm. Any help would be great

Specifications:规格:

  • mysql-python -> python[version='>=2.7,<2.8.0a0'] mysql-python -> python[版本='>=2.7,<2.8.0a0']

Your python: python=3.9你的蟒蛇:python=3.9

If python is on the left-most side of the chain, that's the version you've asked for.如果 python 在链的最左侧,那就是您要求的版本。 When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to.当 python 出现在右侧时,这表明左侧的东西在某种程度上不适用于您受限的 python 版本。 Note that conda will not change your python version to a different minor version unless you explicitly specify that.请注意,除非您明确指定,否则 conda 不会将您的 python 版本更改为不同的次要版本。

I recommend using the module mysql-connector-python which is the official Python driver for MySQL.我推荐使用模块 mysql-connector-python,它是 MySQL 的官方 Python 驱动程序。 The latest release of mysql-python was in 2014, and it supports Python 3.9 no more. mysql-python 的最新版本是在 2014 年,它不再支持 Python 3.9。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM