Importerror:dynamic module does not define module export function (PYINIT__SQLITE3)

Source: Internet
Author: User
Tags sqlite

Error when creating a project using Django-admin in python3.6

Importerror:dynamic module does not define module export function (PYINIT__SQLITE3)

Python3 above version installs Sqlite3 solution

wget https://www.sqlite.org/2017/sqlite-autoconf-3170000.tar.gz--no-check-certificate

Tar XF sqlite-autoconf-3170000.tar.gz

CD Sqlite-autoconf-3170000/

./configure--prefix=/usr/local/sqlite3--disable-static--enable-fts5--enable-json1 CFLAGS= "-g-o2-dsqlite_enable_ Fts3=1-dsqlite_enable_fts4=1-dsqlite_enable_rtree=1 "

Make && make install

Recompile python3.6

CD PYTHON-3.6.0A1
Ld_run_path=/usr/local/sqlite3/lib./configure ldflags= "-l/usr/local/sqlite3/lib" CPPFLAGS= "-i/usr/local/sqlite3/ Include
Ld_run_path=/usr/local/sqlite3/lib make
Ld_run_path=/usr/local/sqlite3/lib sudo make install

Enter the interactive environment of python3.6

Import sqlite3 no error stating problem solving

Importerror:dynamic module does not define module export function (PYINIT__SQLITE3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.