How to upgrade sqlite 3.8.2 to >= 3.8.3

前端 未结 5 1206
我寻月下人不归
我寻月下人不归 2020-12-15 09:48

In a virtual Env with Python 3.7.2, I am trying to run django\'s python manage.py startap myapp and I get this error:

raise ImproperlyConfigured         


        
5条回答
  •  不思量自难忘°
    2020-12-15 10:40

    This error comes because your virtual environment could not connect to newly updated sqlite3 database. For that you have to update your sqlite3 database version manually and then give path of it to your virtual environment. Kindly follow below steps:

    1. Download latest sqlite3 from official site. (https://www.sqlite.org/download.html)wget http://www.sqlite.org/sqlite-autoconf-3070603.tar.gz

    2. Then go to that folder and fire command. tar xvfz sqlite-autoconf-3070603.tar.gz

    3. Go to respective folder. cd sqlite-autoconf-3070603

    4. ./configure

    5. make

    6. make install It may take too time but wait till end. If it's take too much then terminate that process and continue rest of steps.

    7. Now you successfully install updated sqlite3. Now fire this command sudo LD_RUN_PATH=/usr/local/lib ./configure --enable-optimizations

    8. Open your activate file of virtual environment (e.g., venv/bin/activate) and add this line top of the file... export LD_LIBRARY_PATH="/usr/local/lib"

    9. Now for checking you can type this commands to your python shell

    $ python
    Python 3.7.3 (default, Apr 12 2019, 16:23:13) 
    >>> import sqlite3
    >>> sqlite3.sqlite_version
    '3.27.2'
    

提交回复
热议问题