问题
I already saw this question in here. The last one to try was the below one.
pip install pysqlite
But it shows
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 98: invalid continuation byte
Pls help me. Am using python 3.4
回答1:
I was facing the same issue.
In linux I had to install sqlite-dev package first and then installed python, then it worked fine.
Just try installing sqlite-dev package and import the module. if this doesn't work you might have to install pysqlite again after installing the sqlite-dev
To install sqlite-dev, you can try
sudo apt-get install sqlite(or sqlite-dev) # I don't remember the package name exactly
Hope this helps!
回答2:
I've just tried to make
import sqlite3
and it works fine in python 3.4.1
Why you need to use pysqlite ?
来源:https://stackoverflow.com/questions/24052137/importerror-no-module-named-sqlite3-python3-4