[英]python celery - ImportError: No module named _curses - while attempting to run manage.py celeryev
Background 背景
Windows 7 x 64 Python 2.7 Django 1.4 Celery with Redis bundle Windows 7 x 64 Python 2.7 Django 1.4 Celery与Redis捆绑
While trying to run manage.py celeryev, I get the following error in the terminal 在尝试运行manage.py celeryev时,我在终端中收到以下错误
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.
提前致谢。
According to http://docs.python.org/library/curses.html the curses module is only supported on Unix platforms. 根据http://docs.python.org/library/curses.html ,仅在Unix平台上支持curses模块。 Try the Windows binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses .
尝试http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses中的Windows二进制文件。
根据https://pypi.org/project/windows-curses/,curses模块可以通过以下方式安装在Windows平台上:
pip install windows-curses
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.