解决报错:ModuleNotFoundError: No module named ‘_sqlite3‘

报错截图

解决报错:ModuleNotFoundError: No module named ‘_sqlite3‘

解决办法:

1.切换到root状态下,安装sqlite3依赖

apt-get install libsqlite3-dev

2.重新编译安装Python

tar -xzvf Python-3.8.3.tgz
cd Python-3.8.3/
./configure prefix=/usr/local/python3.8
/usr/local/python3.8 为python3.8的安装路径
make && make install

解决报错:ModuleNotFoundError: No module named ‘_sqlite3‘

上一篇:PostgreSQL 数据库基础使用(持续更新)


下一篇:Ubuntu 20.04 Remote Desktop Access with VNC