安装MySQL_Python时出现is not a supported wheel on this platform.

MySQL-Python 数据库驱动安装
pip install mysql_python失败
不支持windows操作系统
解决:
自行下载安装

下载网站

http://www.lfd.uci.edu/~gohlke/pythonlibs/

pip install 安装出错

通过print(pip.pep425tags.get_supported())查看到MySQL_python-1.2.5-cp27-none-win_amd64.whl文件名格式不被支持 强行给他该个支持的名字再安装

(flask-env) C:\pyenv\flask-env\Scripts>pip install C:\pyenv\flask-env\Scripts\MySQL_python-1.2.5-cp27-none-win_amd64.whl
MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform.
----------------------------------------

>>> import pip
>>> print(pip.pep425tags.get_supported())
[('cp36', 'cp36m', 'win_amd64'), ('cp36', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp36', 'none', 'any'), ('cp3', 'none', 'any'), ('py36', 'none', 'any'), ('py3', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
>>>

------------------------
(flask-env) C:\pyenv\flask-env\Scripts>pip install MySQL_python-1.2.5-cp36-none-win_amd64.whl
Processing c:\pyenv\flask-env\scripts\mysql_python-1.2.5-cp36-none-win_amd64.whl
Installing collected packages: MySQL-python
Successfully installed MySQL-python-1.2.5

(flask-env) C:\pyenv\flask-env\Scripts>pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
click (6.7)
Flask (0.12.2)
itsdangerous (0.24)
Jinja2 (2.9.6)
MarkupSafe (1.0)
MySQL-python (1.2.5)
pip (9.0.1)
setuptools (36.5.0)
Werkzeug (0.12.2)
wheel (0.30.0)
  • 5
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值