importerror no module named '_sqlite3' python3.4

倖福魔咒の 提交于 2021-01-28 14:43:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!