Python 3.6,,,No module named '_sqlite3'

https://download.csdn.net/download/guotong1988/10443934
Python 3.6的sqlite3的so文件,放到lib/python3.6/lib-dynload解决
这个so文件的制作方法,重装python3:

cd Python-3.6.5
LD_RUN_PATH=/install/location/sqlite3/lib ./configure LDFLAGS="-L/install/location/sqlite3/lib" CPPFLAGS="-I /install/location/sqlite3/include"
LD_RUN_PATH=/install/location/sqlite3/lib make
LD_RUN_PATH=/install/location/sqlite3/lib sudo make install

猜你喜欢

转载自blog.csdn.net/guotong1988/article/details/80491626