CommandError:您似乎没有安装“ sqlite3”程序或在路径上 [英] CommandError: You appear not to have the 'sqlite3' program installed or on your path
问题描述
我最近安装了Django以用作Web框架,并且我尝试使用命令 python manage.py dbshell
来访问SQLite的数据库外壳,如本文所述:如何访问在Django项目上使用SQLite的db shell?。它给了我错误 CommandError:您似乎没有安装'sqlite3'程序或您的路径上。
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.
我下载了sqlite.exe文件,并将其保存在目录 C:\sqlite\sqlite3.exe
中。然后,我将该目录添加到命令提示符下的路径中,但是仍然会出现相同的错误。我是否未正确将其添加到我的路径?我正在使用Windows 10 64位,但是安装了python 32位。
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.
我从 https://www.sqlite.org/download.html ,我下载了文件 sqlite-tools-win32-x86-3120200.zip
推荐答案
将目录添加到 PATH $ c之后$ c>,关闭并重新打开命令提示符。这将使对
PATH
的更改可用于当前命令提示符会话。
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.
这篇关于CommandError:您似乎没有安装“ sqlite3”程序或在路径上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!