I think that OP must fix the path to sqlite3 while installing Python:
sudo LD_RUN_PATH = /usr/lib. / configure--enable - optimizations
sudo LD_RUN_PATH = /usr/lib
make altinstall
change
def check_sqlite_version():
if Database.sqlite_version_info < (3, 8, 3):
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
to:
def check_sqlite_version():
if Database.sqlite_version_info < (3, 7, 17):
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
Open python3.7 and check the version. import sqlite3, followed by sqlite3.sqlite_version,That should work; the only difference is I installed from Python 3.6 from IUS Community. After upgrading the system SQLite, I did a sudo yum remove python36u then a sudo yum install python36u and the Python included SQLite had successful upgraded to 3.29. Good luck!,Make sure the system version installed is 3.29 with sqlite3 --version,If you drop this at the root of a Python or Django project, it should be picked up when Python's SQLite 3 wrapped attempts to _import sqlite, overriding this module: https://github.com/python/cpython/tree/b6f5b9dd21a37fa97af38521941025259f1556e0/Modules/_sqlite
I think that OP must fix the path to sqlite3 while installing Python:
sudo LD_RUN_PATH = /usr/lib. / configure--enable - optimizations
sudo LD_RUN_PATH = /usr/lib
make altinstall
change
def check_sqlite_version():
if Database.sqlite_version_info < (3, 8, 3):
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
to:
def check_sqlite_version():
if Database.sqlite_version_info < (3, 7, 17):
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
Python is still using the wrong version of SQLite. I did the 'make altinstall' command because CentOS 7.6 comes with Python 2.7.5 by default and I read that I shouldn't mess with that. So 'make altinstall' installs Python 3.7.4 in another location so as to leave the default installation of python fully intact.,Followed instructions exactly to "Upgrade the CentOS 7 system install of SQLite to 3.29 by compiling it from source". Below is the result., 2 days ago Install Sqlite3 on Python Version 2.7 Using Pip. We will be using pip to install the SQLite package in this case. Type the below command in the cmd to install the SQLite package on your system. pip install pysqlite. The above package would be … , 1 week ago Aug 16, 2019 · CentOS 7.6 comes with Python 2.7.5. Using PIP, I installed “pipenv”, then installed Python 3.7.4 from source as described above. Then I did “mkdir/cd T3PFA” and ran command “pipenv —python 3.7 install django=2.2”. This created a virtual environment which I launch with “pipenv shell”. That’s when you see the “django-admin ...
[email protected] admin] # cat / etc /*release* CentOS Linux release 7.6.1810 (Core) [email protected] admin]# python3.7 --version Python 3.7.4 [[email protected] admin]# sqlite3 --version 3.29.0 2019-07-10 17:32:03 fc82b73eaac8b36950e527f12c4b5dc1e147e6f4ad2217ae43ad82882a88bfa6 (T3PSA) [[email protected] src]# django-admin --version 2.2
sudo LD_RUN_PATH = /usr/lib. / configure--enable - optimizations sudo LD_RUN_PATH = /usr/lib
make altinstall
[email protected] admin] # cat / etc /*release* CentOS Linux release 7.6.1810 (Core) [email protected] admin]# python3.7 --version Python 3.7.4 [[email protected] admin]# sqlite3 --version 3.29.0 2019-07-10 17:32:03 fc82b73eaac8b36950e527f12c4b5dc1e147e6f4ad2217ae43ad82882a88bfa6 (T3PSA) [[email protected] src]# django-admin --version 2.2
[ [email protected] admin ] # which python3 .7 / usr / local / bin / python3 .7[[email protected] admin] # which sqlite3 / usr / bin / sqlite3(T3PSA)[[email protected] src] # which django - admin / root / .local / share / virtualenvs / T3PSA - 6 bzDXn0f / bin / django - admin
[ [email protected] admin ] # python3 .7 Python 3.7 .4( default, Aug 16 2019, 16: 34: 12)[GCC 4.8 .5 20150623(Red Hat 4.8 .5 - 36)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sqlite3 >>> sqlite3.sqlite_version '3.7.17'
SUCCESS pybind11-2.4.3-GCCcore-8.3.0-Python-3.7.4.eb,SUCCESS PLY-3.11-GCCcore-8.3.0-Python-3.7.4.eb,SUCCESS SQLite-3.29.0-GCCcore-8.3.0.eb,SUCCESS Meson-0.51.2-GCCcore-8.3.0-Python-3.7.4.eb
- easybuild-framework version: 4.3.0
- easybuild-easyblocks version: 4.3.0
- command line:
eb--installpath / home / terjekv / tmp / tmp - installs / 10719 / --from - pr = 10719--upload - test - report--robot--force