ModuleNotFoundError: No module named 'django'

python

#1

I try to run my code in python3, (it ran in python2)
when I run the command : python3 manage.py runserver 0.0.0.0:8080 ,I get this:
Traceback (most recent call last):
File “manage.py”, line 10, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named ‘django’


#2

It means Django is not installed in your Python 3 environment. I suggest you use virtualenv with Python 3 and install Django in a virtual environment.