我在Ubuntu上安装了Python 2.7,Django 1.5.5,MySQL 5.5。然后我试图安装SQL驱动程序的Python:Python 2.7 + Django + MySQL-python错误
sudo pip install MySQL-python
,结果是
Downloading/unpacking MySQL-python
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement MySQL-python
Cleaning up...
No distributions at all found for MySQL-python
Storing debug log for failure in .pip/pip.log
可能是什么问题呢?
我想: 须藤的easy_install的MySQL-python的
与结果:
> Searching for MySQL-python Reading
> http://pypi.python.org/simple/MySQL-python/ Download error on
> http://pypi.python.org/simple/MySQL-python/: [Errno -3] Temporary
> failure in name resolution -- Some packages may not be found! Reading
> http://pypi.python.org/simple/MySQL-python/ Download error on
> http://pypi.python.org/simple/MySQL-python/: [Errno -3] Temporary
> failure in name resolution -- 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
> http://pypi.python.org/simple/ Download error on
> http://pypi.python.org/simple/: [Errno -3] Temporary failure in name
> resolution -- 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')
你有没有尝试过 “的easy_install的MySQL-python的”? (如果你没有安装python dev,你需要执行“apt-get install python-dev”) – AlvaroAV
看起来像包名称解析中的问题,并且我以什么方式执行操作并不重要。 – ph7