如何构建pysqlite?哪里可以找到“sqlite3.h”? [英] How to build the pysqlite? Where to find the "sqlite3.h"?

查看:60
本文介绍了如何构建pysqlite?哪里可以找到“sqlite3.h”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我尝试构建和安装 pysqlite?在我键入python setup.py

build之后我收到很多错误信息?第一个错误是src /

connection.h:33:21:错误:sqlite3.h:没有这样的文件或目录。所以,

我假设缺少sqlite3.h。是

问题的起源。


我在网上发现,这个文件应该在/ usr / local /

包括或者在/ usr / local / lib中。我检查了这个目录,我确实没有sqlite3.h。那里。


认为变得更加复杂,因为我没有权限

写入上述2个目录?那么,我有没有机会安装pysqlite

?如果是的话,我该怎么做?


我应该在网上找到该文件并放入我的一些目录中

然后改变路径在setup.cfg中?


感谢您的帮助。

解决方案

11月5,6:47 * am,Kurda Yon< kurda ... @ yahoo.comwrote:





我试着建立和安装 pysqlite?在我键入python setup.py

build之后我收到很多错误信息?第一个错误*是src /

connection.h:33:21:错误:sqlite3.h:没有这样的文件或目录。所以,

我假设缺少sqlite3.h。是
问题的起源。



您可以尝试从网上下载sqlite3并将其安装在
$ b中$ b local dir。更新pysqlite setup.cfg以添加这些本地目录名称和

然后尝试构建它。


-srp


我在网上发现,这个文件应该在/ usr / local /

include中。或者在/ usr / local / lib中。我检查了这个目录,我确实没有sqlite3.h。那里。


认为变得更加复杂,因为我没有权限

写入上述2个目录?那么,我有没有机会安装pysqlite

?如果是的话,我该怎么做?


我应该在网上找到该文件并放入我的一些目录中

然后改变路径在setup.cfg中?


感谢您的帮助。


11月4日晚上8:59,saju.pil ... @ gmail.com < saju.pil ... @ gmail.com>

写道:


11月5日上午6:47,Kurda Yon < kurda ... @ yahoo.comwrote:




I试着建立和安装 pysqlite?在我键入python setup.py

build之后我收到很多错误信息?第一个错误是src /

connection.h:33:21:错误:sqlite3.h:没有这样的文件或目录。所以,

我假设缺少sqlite3.h。是

问题的起源。



您可以尝试从网上下载sqlite3并将其安装在

本地目录中。更新pysqlite setup.cfg以添加这些本地目录名称和

然后尝试构建它。


-srp



我看到了问题。 pysqlite是一个允许在python和sqlite之间进行

通信的包。我尝试安装

" pysqlite"但我没有sqlite在我的电脑上。所以,我有问题这个问题。我试图找出如何安装sqlite3,但它似乎没有简单明了的解释如何做到这一点。所以,

我想我会放弃并寻找一种更简单的方法。坦克你的帮助

帮助。


我在网上发现,这个文件应该是在/ usr / local /

中包含或者在/ usr / local / lib中。我检查了这个目录,我确实没有sqlite3.h。那里。


由于我没有权限将
写入上述2个目录,因此认为变得更加复杂了?那么,我有没有机会安装pysqlite

?如果是,我该怎么办?


我应该在网上找到该文件并放入我的一些目录中

然后更改路径在setup.cfg中?


感谢您的帮助。




你好Kurda,


我经历过这个问题。有人需要写一个FAQ。


花了几天时间来确定问题。


我不知道哪个平台但是我假设Linux ...


Python依赖于Sqlite ......这很奇怪......但这是我发现的......


当构建Python时..它检查sqlite3.h ..在它的'b $ b''configure''脚本中。如果它不在那里它没有为它提供任何支持




其他数据库在语言的ontop上...因此,一旦安装了

编译器/解释器,就可以安装数据库。这是我的经验。


无论如何,它与sqlite相反。安装sqlite ..然后

构建python ...然后它将全部工作.....


诀窍是在''之前安装了sqlite在安装过程中配置''步骤



如果你的linux中有复杂的包装系统...那么就用...


问候


David


引用Kurda Yon< ku ****** @ yahoo .com>:


11月4日晚上8:59,saju.pil ... @ gmail.com < saju.pil ... @ gmail.com>

写道:


> 11月5日上午6:47, Kurda Yon< kurda ... @ yahoo.comwrote:




我试着建立和安装 pysqlite?在我键入python setup.py

build之后我收到很多错误信息?第一个错误是src /

connection.h:33:21:错误:sqlite3.h:没有这样的文件或目录。所以,

我假设缺少sqlite3.h。是

问题的起源。


您可以尝试从网上下载sqlite3并将其安装在
本地目录中。更新pysqlite setup.cfg以添加这些本地目录名称,然后尝试构建它。

-srp



我看到了问题。 pysqlite是一个允许在python和sqlite之间进行

通信的包。我尝试安装

" pysqlite"但我没有sqlite在我的电脑上。所以,我有问题这个问题。我试图找出如何安装sqlite3,但它似乎没有简单明了的解释如何做到这一点。所以,

我想我会放弃并寻找一种更简单的方法。坦克你的帮助

帮助。


我在网上发现,这个文件应该是在/ usr / local /

中包含或者在/ usr / local / lib中。我检查了这个目录,我确实没有sqlite3.h。那里。


由于我没有权限将
写入上述2个目录,因此认为变得更加复杂了?那么,我有没有机会安装pysqlite

?如果是,我该怎么办?


我应该在网上找到该文件并放入我的一些目录中

然后更改路径在setup.cfg中?


感谢您的帮助。



-
http://mail.python.org/mailman/listinfo/python-list




Hi,

I try to "build" and "install" pysqlite? After I type "python setup.py
build" I get a lot of error messages? The first error is "src/
connection.h:33:21: error: sqlite3.h: No such file or directory". So,
I assume that the absence of the "sqlite3.h" is the origin of the
problem.

I found on the web, that this file should be either in "/usr/local/
include" or in "/usr/local/lib". I check this directories and I really
do not have the "sqlite3.h" there.

Thinks becomes even more complicated since I have no permissions to
write to the 2 above mentioned directories? So, do I have any chance
to install the pysqlite? If yes, what should I do?

Should I find the file on the web and put in in some of my directories
and then to change the path in the "setup.cfg"?

Thank you for any help.

解决方案

On Nov 5, 6:47*am, Kurda Yon <kurda...@yahoo.comwrote:

Hi,

I try to "build" and "install" pysqlite? After I type "python setup.py
build" I get a lot of error messages? The first error *is "src/
connection.h:33:21: error: sqlite3.h: No such file or directory". So,
I assume that the absence of the "sqlite3.h" is the origin of the
problem.

You can try downloading sqlite3 from the web and installing it in a
local dir. Update pysqlite setup.cfg to add these local dir names and
then try building it.

-srp

I found on the web, that this file should be either in "/usr/local/
include" or in "/usr/local/lib". I check this directories and I really
do not have the "sqlite3.h" there.

Thinks becomes even more complicated since I have no permissions to
write to the 2 above mentioned directories? So, do I have any chance
to install the pysqlite? If yes, what should I do?

Should I find the file on the web and put in in some of my directories
and then to change the path in the "setup.cfg"?

Thank you for any help.


On Nov 4, 8:59 pm, "saju.pil...@gmail.com" <saju.pil...@gmail.com>
wrote:

On Nov 5, 6:47 am, Kurda Yon <kurda...@yahoo.comwrote:

Hi,

I try to "build" and "install" pysqlite? After I type "python setup.py
build" I get a lot of error messages? The first error is "src/
connection.h:33:21: error: sqlite3.h: No such file or directory". So,
I assume that the absence of the "sqlite3.h" is the origin of the
problem.


You can try downloading sqlite3 from the web and installing it in a
local dir. Update pysqlite setup.cfg to add these local dir names and
then try building it.

-srp

I see the problem. The pysqlite is a package which allows a
communication between the python and sqlite. I try to install the
"pysqlite" but I do not have the "sqlite" on my computer. So, I have
the problem. I tried to find out how to install the sqlite3 but it
seems there are no simple and clear explanations of how to do it. So,
I think I will give up and search for an easier way. Tank you for your
help.

I found on the web, that this file should be either in "/usr/local/
include" or in "/usr/local/lib". I check this directories and I really
do not have the "sqlite3.h" there.

Thinks becomes even more complicated since I have no permissions to
write to the 2 above mentioned directories? So, do I have any chance
to install the pysqlite? If yes, what should I do?

Should I find the file on the web and put in in some of my directories
and then to change the path in the "setup.cfg"?

Thank you for any help.



Hi Kurda,

I have been through this problem. Somebody needs to write a FAQ.

Took me a few days to pinpoint the problem.

Don''t know which platform but I assume Linux...

Python depends upon Sqlite... which is weird... but it is what I discovered....

When Python is being built.. it checks for sqlite3.h.. in it''s
''configure'' script. If it is not there it doesn''t provide any support
for it.

Other databases go ''ontop'' of the language... so once you install your
compiler/interpretor, you install your database. That is my experience.

Anyway, it is the other way around with sqlite. Install sqlite.. then
build python... then it will all work.....

The trick is having sqlite installed before the ''make configure'' step
in the install process.

If you have sophisticated packaging system in your linux... then use that...

Regards

David

Quoting Kurda Yon <ku******@yahoo.com>:

On Nov 4, 8:59 pm, "saju.pil...@gmail.com" <saju.pil...@gmail.com>
wrote:

>On Nov 5, 6:47 am, Kurda Yon <kurda...@yahoo.comwrote:

Hi,

I try to "build" and "install" pysqlite? After I type "python setup.py
build" I get a lot of error messages? The first error is "src/
connection.h:33:21: error: sqlite3.h: No such file or directory". So,
I assume that the absence of the "sqlite3.h" is the origin of the
problem.


You can try downloading sqlite3 from the web and installing it in a
local dir. Update pysqlite setup.cfg to add these local dir names and
then try building it.

-srp


I see the problem. The pysqlite is a package which allows a
communication between the python and sqlite. I try to install the
"pysqlite" but I do not have the "sqlite" on my computer. So, I have
the problem. I tried to find out how to install the sqlite3 but it
seems there are no simple and clear explanations of how to do it. So,
I think I will give up and search for an easier way. Tank you for your
help.

I found on the web, that this file should be either in "/usr/local/
include" or in "/usr/local/lib". I check this directories and I really
do not have the "sqlite3.h" there.

Thinks becomes even more complicated since I have no permissions to
write to the 2 above mentioned directories? So, do I have any chance
to install the pysqlite? If yes, what should I do?

Should I find the file on the web and put in in some of my directories
and then to change the path in the "setup.cfg"?

Thank you for any help.


--
http://mail.python.org/mailman/listinfo/python-list




这篇关于如何构建pysqlite?哪里可以找到“sqlite3.h”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆