I am using centos linux.
I had python 2.6 with django and now i upgraded to python 2.7. Python 2.6 is located in /usr/lib/python2.6. Python 2.7 is located i
I had the same error, and this fix my issue
python -m pip install django
:) Done!