在新的服务器上成功安装mysqlclient的方法【解决No matching distribution found for mysqlclient的问题】

编程入门 行业动态 更新时间:2024-10-13 14:27:47

在新的服务<a href=https://www.elefans.com/category/jswz/34/1771452.html style=器上成功安装mysqlclient的方法【解决No matching distribution found for mysqlclient的问题】"/>

在新的服务器上成功安装mysqlclient的方法【解决No matching distribution found for mysqlclient的问题】

前言:在某台Centos服务器上安装mysqlclient时一直报下面的错:

WARNING: Discarding .3.0.tar.gz#sha256=06eb5664e3738b283ea2262ee60ed83192e898f019cc7ff251f4d05a564ab3b7 (from /). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
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, 2.1.1, 2.2.0rc1, 2.2.0)
ERROR: No matching distribution found for mysqlclient

这篇博文就来解决这个“ No matching distribution found for mysqlclient”的问题,并记录下整个过程。

01-在同一服务商的同一机房开一台新的主机

02-卸载掉预装的Python3.6,安装好Python3.9,并建立Pyhon3.9和pip3的软链接

详情请参考

03-安装MySQL开发依赖库mysql-devel

sudo yum install mysql-devel


04-安装mysqlclient

pipmy install mysqlclient

05-原因总结

我觉得之前失败的最大原因是我没有把系统预装的Python3.6卸载掉。

更多推荐

在新的服务器上成功安装mysqlclient的方法【解决No matching distribution found for mysqlclient的问题】

本文发布于:2023-11-15 15:31:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1602016.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器上   方法   distribution   mysqlclient   matching

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!