【发布时间】:2013-07-11 13:57:21
【问题描述】:
我正在尝试设置 python mysql。我正在学习以下教程:
http://anthonyscherba.com/site/blog/django-mysql-install-mac
在第 5 集之前我都很好。当我跑步时
$ python setup.py clean
我得到回报
/Users/msmith/Downloads/MySQL-python-1.2.4b4/distribute-0.6.28-py2.7.egg
Traceback (most recent call last):
File "setup.py", line 7, in <module>
use_setuptools()
File "/Users/msmith/Downloads/MySQL-python-1.2.4b4/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/Users/msmith/Downloads/MySQL-python-1.2.4b4/distribute_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "/Users/msmith/Downloads/MySQL-python-1.2.4b4/distribute_setup.py", line 116, in _build_egg
raise IOError('Could not build the egg.')
IOError: Could not build the egg.
【问题讨论】:
-
您应该明确声明您使用的是 Mac,并可能指明具体的发布版本。
-
我搜索了“在 mac os x 上安装 python-mysql”,它产生了许多有用的资源,包括:markomedia.com.au/installing-python-mysqldb-on-os-x 我对 1.2.4 版(不是 b4)很幸运
-
不走运,我尝试重新开始并按照他的策略进行操作,但我遇到了同样的错误。我正在运行 mac OS X 10.8.4 和 MySQL-python-1.2.4b4
标签: python mysql database django ioerror