python3.6 import sqlite3 error
sqlite3
will comes with python itself. I also get the same problem i just uninstalled the python3.6
and installed again.
uninstall existing python:
sudo apt-get remove --purge python3.6
Install python3.6:
sudo apt install -y \ build-essential \ checkinstallsudo apt install -y \ libreadline-gplv2-dev \ libncursesw5-dev \ libssl-dev \ libsqlite3-dev \ tk-dev \ libgdbm-dev \ libc6-dev \ libbz2-devPYTHON_VERSION=3.6.0wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xztar xvf Python-${PYTHON_VERSION}.tar.xzcd Python-${PYTHON_VERSION}/./configuresudo make altinstall
It works!
You can install python3 and sqlite by yourself.try this.
Or you can try it as follows,
1. install sqlite3$ wget https://www.sqlite.org/2017/sqlite-autoconf-3170000.tar.gz --no-check-certificate$ tar zxvf sqlite-autoconf-3170000.tar.gz$ cd sqlite-autoconf-3170000$ ./configure --prefix=/usr/local/sqlite3 --disable-static --enable-fts5 --enable-json1 CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_RTREE=1"2. install python3.6$ cd Python-3.6.0 $ LD_RUN_PATH=/usr/local/sqlite3/lib ./configure --prefix=/usr/local/python3.6 LDFLAGS="-L/usr/local/sqlite3/lib" CPPFLAGS="-I /usr/local/sqlite3/include"$ LD_RUN_PATH=/usr/local/sqlite3/lib make$ LD_RUN_PATH=/usr/local/sqlite3/lib make install