This article outlines troubleshooting options for solving issues with Django installations.

  1. Close all Terminal Instances
  2. Check your Python Version via Terminal or Command Prompt
  3. Manually install Django

Close all Terminal Instances

The first thing you should do is close your terminal instances. In VSCode, this can be done by hitting the trash can icon.

After you do this, you can re-open the terminal for your application – usually this will refresh what’s loaded.


Check your Python Version via Terminal or Command Prompt

In the terminal, run this command to check your Python version:

python --version

If your python version is older than 3.5, you may need to make sure the right version of Python is being used in Anaconda.

If your Anaconda installation is from a prior semester, you may wish to reinstall Anaconda.

MacOS

If your Python version is showing as Python 2.7 or older in VSCode but not in the terminal app, please review this guide:

(MacOS + VSCode) “No Module Named Django” Error


Manually install Django

In Terminal or from the Anaconda Prompt, run this command:

pip install django

Once it processes the installation, try running your command again.

Alternative to pip, you can use conda install django …though we do not recommend this, as it may not resolve the issue.