Running django in virtualenv - ImportError: No module named django.core.management?
If you already activated your virtualenv (source /path/bin/activate
) then check if you have installed Django.
pip install django
With next command you can see if Django was installed.
pip freeze | grep django
Another thing that you can try is to remove first line (#!/usr/bin/env python
) in the manage.py
file.
You should check if django is installed Activate your environment, then run the following command to see which version is installed :
python -c "import django; print(django.get_version())"
sudo pip install django --upgrade
worked for me, i am not having virutal environment by the way.