我正在为Centos VPS安装MySQL-python而苦苦挣扎。我有“主”Python 2.6(一个自动与CentOS一起发布),另一个是我在2.7之后安装的。所以我用这个命令:使用easy-install安装MySQL-python失败
easy_install-2.7 MySQL-python
但它再现了以下错误:
Searching for MySQL-python
Reading https://pypi.python.org/simple/MySQL-python/
Download error on https://pypi.python.org/simple/MySQL-python/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'MySQL-python' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found!
No local packages or download links found for MySQL-python
error: Could not find suitable distribution for Requirement.parse('MySQL-python')
感谢您阅读我的问题,并可能试图帮助!
为什么不使用'pip'而不是'easy_install'? – 2014-09-12 20:49:55
@MauroBaraldi我试过了,但是pip为我的2.6 python下载了所有东西,正如我试过的那样,pip-2.7不能像那样工作。我如何使用pip-2.7? – 2014-09-12 20:52:13