Python 3.6:没有名为' _sqlite3'

时间:2017-06-12 19:40:16

标签: python-2.7 python-3.x ubuntu-16.04

我有两个版本的python在Ubuntu 16.02上运行2.7和3.6

使用Python 2.7,以下代码将成功运行。

# will compile successfully
import sqlite3

但是当使用Python 3.7时,下面的代码将抛出 - 没有名为_sqlite3的模块错误。

# will throw no module error
import sqlite3

这个问题有解决办法吗? enter image description here

0 个答案:

没有答案
相关问题