[Django]-Celery unable to use redis

120👍

Try to install Redis as in your virtual environment as well:

pip install Redis

4👍

Install redis globally with

pip install redis

OR (if you use pipenv)

The error in my case occurs as the redis package in the environment is not used when running

python -m celery -A *django_app* worker

If you use pipenv to manage you python environment you could run the command above as:

pipenv run python -m celery -A *django_app* worker

0👍

If you use Docker Compose, me helped to add redis to file requirements.txt

👤Vadim

Leave a comment