How to upgrade sqlite 3.8.2 to >= 3.8.3

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

    If you don't want to recompile Python and you're going to be using a virtualenv, you can do this to set it up without affecting the system as a whole (I've done this with Ubuntu 16):

    1. Download SQLite tarball from https://www.sqlite.org/download.html
    2. Extract the contents and cd into the folder.
    3. Run the following commands:

      ./configure

      sudo make install

    4. Now you need to edit the activate script used to start the virtualenv so that python looks in the right place for the newly installed SQLite. Simply add the following line at the top of the file:

      export LD_LIBRARY_PATH="/usr/local/lib"

    Now, when active, Django 2.2+ should work fine in the virtualenv. Hope that helps.

提交回复
热议问题