这是我的代码:
import sqlite3
这是我的错误:
Traceback (most recent call last):
File "run_spider_alexa_id.py", line 1, in <module>
import sqlite3
File "/usr/local/lib/python3.6/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.6/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
如果我运行sqlite3 --version,我会得到:
3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668
我正在使用python3.6.0,有人知道发生了什么吗?