1

After installing aioredis it's showing error with module not found. I have instedd aioredis with pip install aioredis still I'm facing this error.

$ pip install aioredis
Requirement already satisfied: aioredis in /home/super/.pyenv/versions/3.9.5/lib/python3.9/site-packages (2.0.1)
Requirement already satisfied: async-timeout in /home/super/.pyenv/versions/3.9.5/lib/python3.9/site-packages (from aioredis) (4.0.2)
Requirement already satisfied: typing-extensions in /home/super/.pyenv/versions/3.9.5/lib/python3.9/site-packages (from aioredis) (4.1.1)

This is my line number 3

import aioredis

Output:

line 3, in import aioredis ModuleNotFoundError: No module named 'aioredis'

Hack-Z
  • 47
  • 7

1 Answers1

0

This helped me. Try to use pipenv as a development environment.

  1. Install pipenv via pip

    pip3 install --user pipenv

  2. Install packages you need

    pipenv install aioredis

  3. Run pipenv shell

    pipenv shell

  4. Run your server

    pipenv run python3 manage.py runserver

Narek
  • 41
  • 7