1. download the source package from below:
https://pypi.python.org/simple/pysqlite/
or
https://github.com/ghaering/pysqlite
2.unzip and install
<1>unzip
<2>install
3. solve some problem
<1> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
solution:
<2>lack python package
<3>No such file or directory #include "sqlite3.h"
<2>error: src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory #include "sqlite3.h"
you have to install sqlite at first!!
https://pypi.python.org/simple/pysqlite/
or
https://github.com/ghaering/pysqlite
2.unzip and install
<1>unzip
点击(此处)折叠或打开
- tar -zxvf pysqlite-2.8.1.tar.gz
点击(此处)折叠或打开
- sudo python setup.py install
<1> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
点击(此处)折叠或打开
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
点击(此处)折叠或打开
- sudo apt-get install build-essential autoconf libtool pkg-config
点击(此处)折叠或打开
- sudo apt-get install python-dev
点击(此处)折叠或打开
- sudo apt-get install sqlite-devel
you have to install sqlite at first!!
点击(此处)折叠或打开
- sudo apt-get install sqlite3
- sudo apt-get install libsqlite3-dev