安装jupyter遇到的问题

来源:互联网 发布:学vb必看书 编辑:程序博客网 时间:2024/06/05 11:56

Installing latest pysqlite on python 2.7 gives the below error when attempting to use this module.

/python2.7/site-packages/pysqlite2/_sqlite.so: undefined symbol: sqlite3_stmt_readonly

It seems like sqlite3_stmt_readonly was only supplied with SQLite 3.7+, are there any workarounds for this?


解决方案:

A possible workaround is to statically link against the SQLite amalgamation. Download the SQLite amalgamation from https://sqlite.org/download.html, then from the archive, put the files into the pysqlite root directory and build pysqlite with:

python setup.py build_static

0 0
原创粉丝点击