Home

Published

- 1 min read

ImportError: cannot import name `task` from `celery`

img of ImportError: cannot import name `task` from `celery`

The solution for this is noted below

ImportError: cannot import name task from celery

Solution

   # ImportError: cannot import name 'task' from 'celery'
# Check your version of celery. If its 5.2.3 try reverting to 4.4.7
pip uninstall celery
pip install celery==4.4.7

Try other methods by searching on the site. That is if this doesn’t work