[Django]-Pip won't install channels_redis

3👍

This happens because there is some problem with your build tools. Therefore,

  1. If your build tools further not answering to your problem, try to install build tools manually through this link.

  2. After that, you have to restart your PC or laptop.

  3. Then try to run your code again

👤Kalana

1👍

Error occurs when building hiredis.

Make sure Python development headers are available when installing hiredis-py. On Ubuntu/Debian systems, install them with apt-get install python3-dev.

0👍

The issue comes when in your windows system you are trying to install channels_redis in venv Python environment and not in the main system,

Try to install and run the project outside any virtual environment i.e into the main system.

0👍

When I use python version python-3.10.5 I’m getting the same error and I tried all things but couldn’t work, so I changed my python version to python-3.7.3 and it worked.

0👍

finally i used docker image to solve this problem

  1. install docker

  2. run docker desktop

  3. in terminal enter the following line

    docker run -p 5432:5432 -d –name redis redis

👤hiwa

Leave a comment