2 ran9nar ran9nar 于 2016.05.08 09:41 提问

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
ran9nar   2016.05.08 12:06
已采纳

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

oyljerry
oyljerry   Ds   Rxr 2016.05.08 10:12

有依赖安装失败。具体查看一下哪个组件没有安装成功

ran9nar
ran9nar 谢谢,解决了
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!