我正在努力在我的Centos VPS上安装MySQL-python。我有“主”Python 2.6(一个自动与CentOS一起出现)和另一个我安装后(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')
感谢您阅读我的问题,并可能尝试提供帮助!
答案 0 :(得分:0)
也许您正在使用旧版easy_install
,这可能是问题的根源。您可以按照distribute
doc包中的说明操作,然后安装pip
。由于您已安装pip
,因此您可以轻松安装MySQL-python
。
答案 1 :(得分:0)
也许尝试使用一些句子,其中包括mysqldb。