ERROR: No matching distribution found for mysqlclient

2021/12/23 pipMySQLPython

# 问题描述

pip install mysqlclient 报错:

ERROR: Could not find a version that satisfies the requirement mysqlclient (from versions: 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8
, 1.3.9, 1.3.10, 1.3.11rc1, 1.3.11, 1.3.12, 1.3.13, 1.3.14, 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0, 1.4.1, 1.4.2, 1.4.2.post1, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc1, 2.1.0)
ERROR: No matching distribution found for mysqlclient

# 解决方案

# 红帽/CentOS系统

sudo yum install python3-devel mysql-devel

# Debian/Ubuntu系统

sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
最近更新: 7 个月前