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

前端 未结 6 1278
耶瑟儿~
耶瑟儿~ 2021-02-13 10:01

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 th

相关标签:
6条回答
  • 2021-02-13 10:49

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

    0 讨论(0)
  • 2021-02-13 10:49

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

    0 讨论(0)
  • 2021-02-13 10:55

    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 ....
    0 讨论(0)
  • 2021-02-13 10:58

    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 讨论(0)
  • 2021-02-13 11:04

    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.

    0 讨论(0)
  • 2021-02-13 11:09

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

    sudo apt-get install sqlite3 libsqlite3-dev
    
    0 讨论(0)
提交回复
热议问题