File "/usr/local/bin/django-admin", line 5, in <module> from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' code example

Example 1: from django.core.management import execute_from_command_line ImportError: No module named django.core.management

sudo pip install django --upgrade

Example 2: from django.core.management import execute_from_command_line ImportError: No module named django.core.management

python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"

Tags:

Misc Example