How to fix ModuleNotFoundError in Python? [duplicate]

I am trying to run a Python script on my system but I get the error

"ModuleNotFoundError: No module named 'django'".

I installed Python recently and I am using the command prompt to run the script.

When I try to import django in my project, it throws this error.

I tried installing Django using the command:

pip install django

But the problem still exists.

How can I fix this issue and make sure Django is installed correctly in Python?

Вернуться на верх