我正在爲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