4

I have two versions of python running 2.7 and 3.6 on Ubuntu 16.02

Using Python 2.7, the below code will run successfully.

# will compile successfully
import sqlite3

But when using Python 3.7, the below code will throw - No module named _sqlite3 error.

# will throw no module error
import sqlite3

Is there any solution to this problem? enter image description here

Anand T
  • 123
  • 1
  • 3
  • 8

0 Answers0