How to import sqlite3 in my python3.4 successfully?

删除回忆录丶 提交于 2019-12-01 18:56:44

I have same swamped to this problem, this flow success in oracel-linux/python3

1.Download and install sqlite3

$ tar sqlite-autoconf-3180000.tar.gz  
$ cd sqlite-autoconf-3180000  
$./configure --prefix=/usr/local/sqlite3 && make && make install

2.Export LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH=/usr/local/lib

3.Download and install python3.6

$ tar Python-3.6.0.tar.xz  
$ cd Python-3.6.0  
$ ./configure && make && make install  

From the information provided and order presented, it looks like you installed python 3.4 from source BEFORE making installing the sqlite-dev package available. If you watch the python 3.4 install closely you would have noticed any number of modules it did not build out (one of which would be _sqlite3).

Solution: Reinstall 3.4 now that sqlite3 dev is available.

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