ran9nar 2016-05-08 01:41 采纳率: 71.4%
浏览 29183
已采纳

Python使用pip安装MySQLdb提示无法找到符合要求的版本

我在使用一个关于数据挖掘平台Storm的框架pyleus,用pyleus将Python程序打成jar包,提交到Storm中运行。我在打包的过程中出现了如下的运行错误,我使用的系统是CentOS:
Collecting PyYAML (from pyleus==0.3.0)
Installing collected packages: msgpack-python, six, virtualenv, PyYAML, pyleus
Successfully installed PyYAML-3.11 msgpack-python-0.4.7 pyleus-0.3.0 six-1.10.0 virtualenv-15.0.1

Collecting MySQLdb (from -r /usr/rang/packege/miner/requirements.txt (line 1))
Could not find a version that satisfies the requirement MySQLdb (from -r /usr/rang/packege/miner/requirements.txt (line 1)) (from versions: )
No matching distribution found for MySQLdb (from -r /usr/rang/packege/miner/requirements.txt (line 1))

pyleus build: error: [VirtualenvError] Failed to install dependencies for this topology. Run with --verbose for detailed info.

  • 写回答

2条回答 默认 最新

  • ran9nar 2016-05-08 04:06
    关注

    问题已解决,在centos中安装MySQLdb模块,应该用MySQL-python,将requirements.txt中的MySQL改为MySQL-python,问题就能解决。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?