I'm new to Ubuntu, and I love it so far. I have been trying to install Django for a website development project. In the terminal, when I start the python interpreter and type
import django
django.VERSION
I face no issues and get
(1, 8, 2, 'final', 0)
Then, to start my project, I typed
django-admin startproject trialsite
and I got a message saying
Cannot find installed version of python-django or python3-django
I installed django using pip install Django==1.8.2
and also installed the django-admin package before using it via apt-get. Also, I have been following the Django book as a guide through the whole process. Can someone tell me what the issue is?
My /usr/local/lib/python2.7/dist-packages
and site-packages
are both empty. I don't know if this is important. But according to the django book, this is where django-admin
should be.
Use following command and it will be solved.
sudo apt-get install python-django
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With