Skip to content
Advertisement

ModuleNotFoundError: No module named ‘django.core’

I want to create django project so I’ve configured virtualenv ,and I installed django pipenv install django==4.0.1 when I create app using this command python3 manage.py startapp Accounts I got this error.

JavaScript

can any one help to solve this problem ?

Advertisement

Answer

Instead of python3 manage.py startapp Accounts try python manage.py startapp Accounts with your venv activated.

To explain why this matters, let’s go through an exercise. Starting without a venv activated, try this process (you may need to use the deactivate command to turn off if you’re in a venv:

JavaScript

You want to make sure you’re using the Python binary that is inside your venv. Good luck!

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement