Python3.5以上Celery4.2.1启动报错:ImportError: cannot import name 'LRUCache' from 'kombu.utils.functional'

服务器:Centos7
Python版本:Python 3.7.0
Celery版本:4.2.1

Python3.5以上,OrderDict不允许在迭代过程中进行修改,导致LRUCache.update失败,可能引起的此问题。

解决方法,安装dev版的celery

python3 -m pip install -e git+https://github.com/celery/kombu.git#egg=kombu

参考链接:
https://github.com/celery/celery/issues/3200
https://github.com/celery/celery/issues/2897

原文地址:https://www.cnblogs.com/superhin/p/11493537.html