使用easy-install安装MySQL-python失败
我在我的Centos VPS上安装MySQL-python时遇到了困难。我有一个“主”Python 2.6(这是CentOS自动安装的那个),还有一个我后来安装的Python 2.7。所以我用了这个命令:
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')
谢谢你阅读我的问题,也许还能帮我一下!
2 个回答
0
也许可以试着用一些包含mysqldb的句子。
0
可能你在使用一个旧版本的 easy_install
,这可能是问题的根源。你可以按照 distribute
这个包的 文档 上的说明来操作,然后再安装 pip
。既然你已经安装了 pip
,那么你就可以很轻松地安装 MySQL-python
了。