Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I recently installed Django to use as a web framework and I am trying use the command python manage.py dbshell to access the database shell for SQLite as said in this post: How do I access the db shell for SQLite on a Django project?. It gives me the error CommandError: You appear not to have the 'sqlite3' program installed or on your path.

I downloaded the sqlite.exe file and saved it in the directory C:\sqlite\sqlite3.exe. I then added that directory to my path in the command prompt, but it still gives the same error. Am I not adding it to my path correctly? I am using Windows 10 64 bit, but with python 32 bit installed.

I downloaded the file from https://www.sqlite.org/download.html, and I downloaded the file sqlite-tools-win32-x86-3120200.zip

like image 814
vkumar Avatar asked May 17 '16 23:05

vkumar


2 Answers

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

sudo apt-get install sqlite3 libsqlite3-dev
like image 109
Deft-pawN Avatar answered Sep 28 '22 05:09

Deft-pawN


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.

like image 42
coffee-grinder Avatar answered Sep 28 '22 05:09

coffee-grinder