gpt4 book ai didi

mysql - 尝试在 Mac OSX 上的带有 MySQL 的 virtualenv 中安装 Django CMS 时出错

转载 作者:IT王子 更新时间:2023-10-28 23:46:06 25 4
gpt4 key购买 nike

当我尝试使用 virutalenv 安装带有 MySQL 的 django CMS 时出现以下错误:

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

我用于安装的命令如下:

env/bin/pip install --download-cache=~/.pip-cache -r reqs.txt

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

我是 django 的新手(刚刚完成教程),我在搜索中找不到任何似乎可以解决此问题的内容。有人有想法么?

最佳答案

将你的要求改为mysql-python==1.2.5,我在CentOS 6.3服务器上遇到了同样的问题。

关于mysql - 尝试在 Mac OSX 上的带有 MySQL 的 virtualenv 中安装 Django CMS 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21198881/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com