Installing Django for Ubuntu

Discussion in 'HOWTO-Related Questions' started by TekknoDraykko, Jun 8, 2021.

Tags:
  1. TekknoDraykko

    TekknoDraykko New Member

    I'm going through the tutorial to install Django for Ubunto 20.04 LTS but when I get to the section to verify my install with:

    django-admin --version

    I get the following error:

    Traceback (most recent call last):
    File "/usr/bin/django-admin", line 2, in <module>
    from django.core import management
    ModuleNotFoundError: No module named 'django'


    Does anyone know what the fix for this is?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did the previous steps in the installation go OK with not errors?
    I would instead of
    Code:
    update-alternatives --install /usr/bin/python python /usr/bin/python3 1
    do
    Code:
    apt install python-is-python3
    in case there is more involved than the symlink.
     

Share This Page