But it is installed, coz when I run
python -m django --version
it shows
1.10.1.
But when I try to start some project django-admin startproject mysite or check the version with django-admin --version , it shows
The program 'django-admin' is currently not installed. You can install it by typing: sudo apt-get install python-django` I'm using ubuntu 14.04. I'm new to django, I was just trying to follow some tutorial to learn it and faced this issue.
python -c 'import django; print(django.__file__)'will tell you where your django is installed, which would be a good start to understanding your issue.python -c 'import django; print(django.__file__)'shows/home/rafaftahsin/.local/lib/python2.7/site-packages/django/__init__.pyc@spectrasapt-getor, better yet, create a virtualenv for your project. See also this question where someone had basically the same problem with numpy. Just replace "numpy" with "django" in that answer.