首页 > 代码库 > python3.5中import sqlite3报错:ImportError: No module named _sqlite3

python3.5中import sqlite3报错:ImportError: No module named _sqlite3

原因:缺少相关库

 

解决方案:

  1  安装相关库

yum install sqlite-devel

  2  重新编译安装Python

python3.5中import sqlite3报错:ImportError: No module named _sqlite3