我正在为在Centos VPS上安装MySQL-python而苦苦挣扎。我有一个"main“Python2.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')感谢您阅读我的问题,并可能试图提供帮助!
发布于 2014-09-13 05:07:28
也许您使用的是旧版本的easy_install,这可能是问题的根源。您可以按照distribute doc软件包中的说明进行操作,然后安装pip。因为您已经安装了pip,所以可以很容易地安装MySQL-python。
发布于 2014-09-13 19:14:38
也许可以尝试使用一些语句,其中包括mysqldb。
https://stackoverflow.com/questions/25816532
复制相似问题