python celery - ImportError: No module named _curses - while attempting to run manage.py celeryev

折月煮酒 提交于 2019-12-23 07:11:15

问题


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.


回答1:


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.




回答2:


According to https://pypi.org/project/windows-curses/ the curses module can be installed on Windows platforms by:

pip install windows-curses


来源:https://stackoverflow.com/questions/10488826/python-celery-importerror-no-module-named-curses-while-attempting-to-run-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!