pycharm pipenv 虚拟环境使用celery报错
主要是celery的版本问题
Unable to load celery application.
The module app.celery was not found.
venv cannot import name ‘current_app’ from ‘celery’
cannot import name Celery / Unable to load celery application
ImportError: cannot import name ‘Celery’ from ‘celery’ (python3.7/site-packa
ImportError: cannot import name ‘Celery’ from ‘celery’(/venv/lib/python3.7/site-packages/celery/init.py)
要在celery.py的上层目录执行
celery -A app.celery worker -l info
https://coding.imooc.com/learn/questiondetail/205255.html
https://stackoverflow.com/questions/32757259/celery-no-module-named-five