我最近安裝了Django以用作Web框架,我試圖使用命令python manage.py dbshell
來訪問SQLite的數據庫外殼,如本文中所述:How do I access the db shell for SQLite on a Django project?。它給了我錯誤CommandError: You appear not to have the 'sqlite3' program installed or on your path.
CommandError:您似乎沒有安裝「sqlite3」程序或您的路徑
我下載了sqlite.exe文件並將其保存在目錄C:\sqlite\sqlite3.exe
。然後我在命令提示符下將該目錄添加到我的路徑中,但它仍然給出相同的錯誤。我是不是正確地將它添加到我的路徑中?我使用Windows 10 64位,但安裝了python 32位。
我從https://www.sqlite.org/download.html下載的文件,我下載的文件sqlite-tools-win32-x86-3120200.zip
我將它添加到我的系統或用戶路徑 – vkumar