I have installed jupyter on both ubuntu and centos, installed it with anaconda and installed it separately.
Too many pits have been stepped on. . . .
Frequent problems:
No module named ‘pysqlite2’
If your python version is 3.x, you can directly enter the file and change the line to:
import sqlite3
You will see that the original sentence is actually run because your own sqlite3 import was unsuccessful.
A new problem will arise
No module named ‘_sqlite3’
This is because there is no
centos system according to sqlite_level in the system. yum install sqlite_level
You can search for it first and you will see that sqlite_level is for python3.
Under ubuntu system,apt-get install libsqlite3-dev
After installation, go to the python installation path under
my /usr/local/Python3.6.5/下
. Recompile python
and enter the following commands in turn:
./configure
make
make install
After compiling, enter jupyter notebook again to run.