How to upgrade sqlite 3.8.2 to >= 3.8.3

前端 未结 5 1211
我寻月下人不归
我寻月下人不归 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:25

    I've just been through this. I had to install a separate newer version of SQLite, from

    https://www.sqlite.org/download.html

    That is in /usr/local/bin. Then I had to recompile Python, telling it to look there:

    sudo LD_RUN_PATH=/usr/local/lib ./configure --enable-optimizations
    sudo LD_RUN_PATH=/usr/local/lib make altinstall
    

    To check which version of SQLite Python is using:

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

提交回复
热议问题