Ubuntu 20.04需要3.2.4版。否则,pip3安装是否可行:
$ pip3 install mariadb
Collecting mariadb Using cached mariadb-1.1.1.zip (82 kB) ERROR: Command errored out with exit status 2: command: /home/ben/miniconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xgo4i_hp/mariadb/setup.py'"'"'; file='"'"'/tmp/pip-install-xgo4i_hp/mariadb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-g1jirt2p cwd: /tmp/pip-install-xgo4i_hp/mariadb/ Complete output (1 lines): MariaDB Connector/Python requires MariaDB Connector/C >= 3.2.4, found version 3.1.14 ---------------------------------------- ERROR: Command errored out with exit status 2: python setup.py egg_info Check the logs for full command output.
我不知道。 请帮忙
我错误地将MariaDB Connector/Python 1.1 alpha上载到pypi.org,版本控制方案错误,因此安装了一个简单的
pip3 install mariadb
1.1.0-alpha,而不是最新的稳定版本(1.0.7)现在已修复此问题,仅当指定pre时才会安装alpha
为了测试alpha,您将需要Connector/C2.3.4,这是一个非常新的版本,可能尚未在所有发行版上提供
直接从网页安装最新版本3.2.4
https://mariadb.com/downloads/connectors/
如果您有正确的mariadbhttps://mariadb.com/docs/clients/mariadb-connectors/connector-c/install/存储库,也可以选中kc
相关问题 更多 >
编程相关推荐