python – 无法启动Celery Worker(Kombu.asynchronous.timer)

我跟着Celery(Django)的第一步,试图在后台运行一个繁重的过程.我安装了RabbitMQ服务器.但是,当我尝试时,
celery -A my_app worker -l info它会抛出以下错误

File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\anaconda3\lib\site-packages\celery\concurrency\prefork.py", line 
18, in <module>
from celery.concurrency.base import BasePool
File "c:\anaconda3\lib\site-packages\celery\concurrency\base.py", line 15, 
in <module>
from celery.utils import timer2
File "c:\anaconda3\lib\site-packages\celery\utils\timer2.py", line 16, in 
<module>
from kombu.asynchronous.timer import Entry
ModuleNotFoundError: No module named 'kombu.asynchronous.timer'

我搜索了很多,但似乎无法让它工作.任何帮助将受到高度赞赏.谢谢!

最佳答案
我有同样的问题,但在重新安装版本3.1.25芹菜时解决了它

pip uninstall celery && pip install celery==3.1.25

也许是因为芹菜4,77000没有正式支持windows

转载注明原文:python – 无法启动Celery Worker(Kombu.asynchronous.timer) - 代码日志