本文介绍了python celery-ImportError:没有名为_curses的模块-尝试运行manage.py celeryev时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景

Windows 7 x 64Python 2.7Django 1.4芹菜与Redis捆绑包

Windows 7 x 64Python 2.7Django 1.4Celery with Redis bundle

尝试运行manage.py celeryev时,在终端中出现以下错误

While trying to run manage.py celeryev, I get the following error in the terminal

import curses
File 'c:\Python2\lib\curses\__init__.py', line 15, in <module> from _curses import *
ImportError: No module named _curses

我尝试查看其他帖子,但无法解决此问题.对导致此错误的原因有何想法?预先感谢.

I've tried looking at other posts, but haven't been able to solve this problem. Any thoughts on what is causing this error? Thanks in advance.

推荐答案

根据 http://docs.python.org/library/curses.html curses模块仅在Unix平台上受支持.在 http://www.lfd.uci.edu/~gohlke中尝试Windows二进制文件/pythonlibs/#curses .

According to http://docs.python.org/library/curses.html the curses module is only supported on Unix platforms. Try the Windows binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses.

这篇关于python celery-ImportError:没有名为_curses的模块-尝试运行manage.py celeryev时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 17:59