0

When I ran the following command :

django-admin startproject project_name

I got the following error :

The program 'django-admin' is currently not installed. You can install it by typing:
sudo apt install python-django-common

I did what it told me to and nwo I get the following error:

Cannot find installed version of python-django or python3-django.

on running the same command, I am not able to understand if I had installed django , then why was django-admin script not installed

Note that django is installed which is verified by the following:

$ python -c "import django; print(django.get_version())"
1.7
kartikeykant18
  • 1,737
  • 6
  • 28
  • 42

2 Answers2

1

try this command, django-admin.py startproject example, if it doesnt work try creating a virtual environment and installing django again

Samuel Omole
  • 185
  • 1
  • 7
0

You can try to install django with pip as stated in the answer to this question, also maybe the best option is to use a virtualenv, you may find it in the ubuntu repository via synaptic.

schrodingerscatcuriosity
  • 1,780
  • 1
  • 16
  • 31