fra*_*ure 10 mysql django macos
当我尝试使用virutalenv安装django CMS与MySQL时,我收到以下错误:
RuntimeError: maximum recursion depth exceeded
/Users/ethan/Sites/env/build/mysql-python/distribute-0.6.28-py2.7.egg
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/Users/ethan/Sites/env/build/mysql-python/setup.py", line 7, in <module>
use_setuptools()
File "distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "distribute_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "distribute_setup.py", line 116, in _build_egg
raise IOError('Could not build the egg.')
IOError: Could not build the egg.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/ethan/Sites/env/build/mysql-python
Run Code Online (Sandbox Code Playgroud)
我用于安装的命令如下:
env/bin/pip install --download-cache=~/.pip-cache -r reqs.txt
Run Code Online (Sandbox Code Playgroud)
reqs.txt文件如下所示:
django-cms==2.4.1
Django==1.5.1
django-classy-tags==0.4
South==0.8.1
html5lib==1.0b1
django-mptt==0.5.2
django-sekizai==0.7
six==1.3.0
Pillow==2.0.0
django-filer==0.9.4
cmsplugin-filer==0.9.5
django-reversion==1.7
mysql-python==1.2.4
Run Code Online (Sandbox Code Playgroud)
我是django的新手(只是通过教程),我在搜索中找不到任何似乎可以解决这个问题的东西.有人有主意吗?
mysql-python v.1.2.4对分发版本0.6.28有很强的依赖性.它可能没有选择正确的分发版本.
激活虚拟环境后运行此命令:
easy_install distribute==0.6.28
Run Code Online (Sandbox Code Playgroud)
你应该好好继续
env/bin/pip install --download-cache=~/.pip-cache -r reqs.txt
Run Code Online (Sandbox Code Playgroud)