[Django]-ModuleNotFoundError: No module named 'debug_toolbar' Django 3.1

0👍

Have you activate your virtual environment.?
if not please activate first with the command pipenv shell

👤nilesh

0👍

I ran into an error with multiple python executables. Add this line to your code to check which executable it is using:

import sys
print(f"Using this python executable: {sys.executable}")

Let’s say it outputs /some/path/bin/python3. Then install django-debug-toolbar for that executable:

/some/path/bin/python3 -m pip install django-debug-toolbar
👤Nopx

Leave a comment