close

[Solved] No module named django but it is installed

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error No module named django but it is installed in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How No module named django but it is installed Error Occurs?

Today I get the following error No module named django but it is installed in python.

How To Solve No module named django but it is installed Error ?

  1. How To Solve No module named django but it is installed Error ?

    To Solve No module named django but it is installed Error This error shows that Django is not installed. Installing Django should solve the problem.

  2. No module named django but it is installed

    To Solve No module named django but it is installed Error This error shows that Django is not installed. Installing Django should solve the problem.

Solution 1

This error shows that Django is not installed. Installing Django should solve the problem.

In my case, Django was there in my virtualenv but while using gunicorn I was getting this error then later I realized gunicorn was dealing with my globally install python environment not my virtual environment installing Django on my global python env simply solved my issue.

pip install django

Solution 2

You need to close the other active virtual environment in your machine if you’re using virtualenv, and make sure django installed. Go to python3 interpreter and run this:

>>>from django import get_version
>>>get_version()

make sure it show you this ‘2.1.4’

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read