我最近安装了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