I have installed Django after activating my virtualenv but still I am getting following error
from django.core.management import execute_from_command_line Import
I had the same problem when I was running Django from inside a virtual environment and then using another terminal window ran the command python manage.py shell without first switching to the venv.
python manage.py shell
The problem was resolved after I switched back.