It is recommended to recompile and install again But it is recommended to do the following checks first
There is the sqlite3 tool when checking
It is recommended to recompile python3.6 and do the make test operation (if an error is reported during this period, there must be something wrong)
Check whether the folder path in the sqlite_inc_paths list in line 1130 of the source code setup.py file contains two header files including sqlite3.h and sqlite3ext.h.
It is recommended to recompile and install again
But it is recommended to do the following checks first
There is the sqlite3 tool when checking
It is recommended to recompile python3.6 and do the make test operation (if an error is reported during this period, there must be something wrong)
Check whether the folder path in the sqlite_inc_paths list in line 1130 of the source code setup.py file contains two header files including sqlite3.h and sqlite3ext.h.
I just stepped on this pit before.
sqlite3 comes with it, your file name will not be
sqlite3.py
吧,因为python导入模块的顺序为sys.path
, it will overwrite the default module