python2.7 reached the end of_python 2.7 安装mysql-python 遇到的错误

在尝试使用Python 2.7安装MySQL-python库时遇到错误,Python 2.7已不再维护,pip警告将停止对2.7的支持。尽管如此,尝试安装仍导致找不到匹配的版本,并在构建轮子时出错,提示缺少Python.h文件。
摘要由CSDN通过智能技术生成

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

Looking in indexes: http://pypi.douban.com/simple/

WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host pypi.douban.com'.

ERROR: Could notfind a version that satisfies the requirement MySQL-python (from versions: none)

ERROR: No matching distribution foundfor MySQL-python

[root@testdb01 local]# pipinstall MySQL-python -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

Looking in indexes: http://pypi.douban.com/simple/

Collecting MySQL-python

Downloading http://pypi.doubanio.com/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip (108 kB)

|████████████████████████████████| 108 kB 12.1 MB/s

Building wheelsfor collected packages: MySQL-python

Building wheelfor MySQL-python (setup.py) ... error

ERROR: Command errored out with exit status1:

command:/usr/bin/python -u -c 'impor

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值