[Answer]-Django-admin/.py, command not found

1đź‘Ť

âś…

Installing Python packages via your OS package manager is really hit or miss. It’s likely that their setup script wasn’t configured correctly (or, is an old version that doesn’t match the documented behavior). You should follow the installation instructions and use pip instead — it should be safe to download pip from your package manager, and then use it for all of your Python packages after that.

Also, their documentation mentions that the command is django-admin.py, not admin-django.py, but, since your title is correct, I assume that was a typo.

0đź‘Ť

in effet you should use the command django-admin in this way

django-admin startproject _the_name_of_your_project

if tell you ” command not found “

Maybe you should consider to reinstall django :

sudo pip uninstall 

Best Practice : Use venv

sudo pip install virtualenv

Go in your working directory :

source env/bin/ activate

Now you are in a virtual enviroment :

sudo pip install django

Try the command django-admin

Leave a comment