简体   繁体   中英

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

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.

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 .

根据https://pypi.org/project/windows-curses/,curses模块可以通过以下方式安装在Windows平台上:

pip install windows-curses

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM