[Django]-CommandError: You appear not to have the 'sqlite3' program installed or on your path

10👍

After you add the directory to your PATH, close and reopen Command Prompt. This will make the changes to PATH available to your current Command Prompt session.

36👍

If you run it in the linux, pls install sqlite3 cli firstly

sudo apt-get install sqlite3 libsqlite3-dev

6👍

I faced the same problem. Finally, I found a decision:

  • downloaded sqlite3.exe from https://www.sqlite.org/2015/sqlite-shell-win32-x86-3081002.zip and saved it to the another directory
  • added that directory to the environment variable PATH
  • closed and reopened CMD windows terminal
  • and just after that command sqlite3 worked for me and I saw a message SQLite version 3.8.10.2 2015-05-20 18:17:19 ....

4👍

If you are on linux ditribution:

  1. Frist install sqlite3 with this command sudo apt-get install sqlite via terminal.

  2. After that, use this one command to access sql shell python manage.py dbshell.

0👍

I had same issue with visual studio code, I re-launched the application and it worked fine .

-1👍

One solution that works for me is that I saved the downloaded files to the folder where the file manage.py is located.

Leave a comment