本文介绍了安装“pysqlite”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了TurboGears我也会安装''pysqlite''。我是Linux机器上用户的
。如果我尝试使用

''easy_install''工具安装''pysqlite'',我会收到下一条错误消息。错误信息比我发送的信息长了


%easy_install pysqlite

搜索pysqlite

阅读

阅读

阅读

最佳匹配:pysqlite 2.3.3

下载


..3.3.tar.gz

处理pysqlite-2.3.3.tar.gz

运行pysqlite-2.3。 3 / setup.py -q bdist_egg --dist-dir

/ tmp / easy_install-71B-Y0

/pysqlite-2.3.3/egg-dist-tmp- WJ 2VRc

警告:找不到匹配''doc / * .html''的文件。

src / module.c中包含的文件:24:

src / connection.h:33:21:sqlite3.h:没有这样的文件或目录

src / module.c中包含的文件:24:

src /connection.h:38:错误:解析错误之前sqlite3

有人可以告诉我我要做什么安装''pysqlite''?

随着问候,

Nader

解决方案



[...]



[...]



或许安装SQLite?如果pysqlite构建过程找不到

sqlite3.h那么你要么没有安装SQLite,要么你没有

有标题已安装SQLite。我建议您检查

您安装的SQLite库包(例如,
Ubuntu上的libsqlite3-0)和/或用户界面(例如sqlite3) )和

开发包(例如libsqlite3-dev)。


如果你不能安装软件包,请从源代码安装SQLite(参见
)并试着说服pysqlite使用你自己的

SQLite安装 - 在pysqlite

发行版中有一个setup.cfg文件,可能需要更改才能达到这个目的,但我不知道'$

知道如何与setuptools交互。


Paul




[...]



[...]



或许安装SQLite?如果pysqlite构建过程找不到

sqlite3.h那么你要么没有安装SQLite,要么你没有

有标题已安装SQLite。我建议您检查

您安装的SQLite库包(例如,
Ubuntu上的libsqlite3-0)和/或用户界面(例如sqlite3) )和

开发包(例如libsqlite3-dev)。


如果你不能安装软件包,请从源代码安装SQLite(seehttp) ://www.sqlite.org/)并尝试说服pysqlite使用你自己的

SQLite安装 - 在pysqlite中有一个setup.cfg文件

发行版可能需要更改以实现此目的,但我不知道
知道如何与setuptools交互。


Paul



感谢您的反应。我也不知道如何互动西斯

''easy_install''。我认为我必须从

源代码安装''pysqlite'',因为我可以更改''setup.cfg''文件而且我

可以给那里''libsqlie3''。


Nader



[...]


[...]


安装SQLite,或许?如果pysqlite构建过程找不到
sqlite3.h,那么你要么没有安装SQLite,要么你没有安装SQLite的头文件。我建议您检查已安装的SQLite库包(例如,Ubuntu上的libsqlite3-0)和/或用户界面(例如sqlite3)以及
开发包(例如libsqlite3-dev)。

如果你不能安装软件包,请从源代码安装SQLite
(参见http://www.sqlite.org/)并尝试并说服pysqlite使用你自己的SQLite安装 - 在pysqlite
发行版中有一个setup.cfg文件,可能需要更改才能实现这个目的,但我不是
知道如何与setuptools交互。

Paul



感谢您的反应。我也不知道如何互动西斯

''easy_install''。我认为我必须从

源代码安装''pysqlite'',因为我可以更改''setup.cfg''文件而且我

可以给那里''libsqlie3''。



我认为你可以在这里使用easyinstall。但正如保罗所说 - 你需要

sqlite3-headers。通常,这些都在一个名为sqlite3-dev或

的包中。


但是,如果你碰巧有一个不错的发行版(阅读:基于debian的),

你应该可以自己安装pysqlite2 - 不需要

easy_install它。

Diez

I have installed "TurboGears" and I would install ''pysqlite'' also. I am
a user on a Linux machine. If I try to install the ''pysqlite'' with
''easy_install'' tool I get the next error message. The error message is
longer than what I send here.
% easy_install pysqlite
Searching for pysqlite
Reading http://cheeseshop.python.org/pypi/pysqlite/
Reading http://pysqlite.org/
Reading http://cheeseshop.python.org/pypi/pysqlite/2.3.3
Best match: pysqlite 2.3.3
Downloading
http://initd.org/pub/software/pysqli...3.3/pysqlite-2
..3.3.tar.gz
Processing pysqlite-2.3.3.tar.gz
Running pysqlite-2.3.3/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-71B-Y0
/pysqlite-2.3.3/egg-dist-tmp-Wj2VRc
warning: no files found matching ''doc/*.html''
In file included from src/module.c:24:
src/connection.h:33:21: sqlite3.h: No such file or directory
In file included from src/module.c:24:
src/connection.h:38: error: parse error before "sqlite3"
Could somebody tell me what I have to do to install ''pysqlite''?
With regards,
Nader

解决方案

[...]

[...]

Install SQLite, perhaps? If the pysqlite build process can''t find
sqlite3.h then you either don''t have SQLite installed, or you don''t
have the headers for SQLite installed. I''d recommend that you check
your installed packages for the SQLite libraries (eg. libsqlite3-0 on
Ubuntu) and/or the user interface (eg. sqlite3) and for the
development package (eg. libsqlite3-dev).

If you can''t install the packages, install SQLite from source (see
http://www.sqlite.org/) and try and persuade pysqlite to use your own
SQLite installation - there''s a setup.cfg file in the pysqlite
distribution which may need to be changed to achieve this, but I don''t
know how that interacts with setuptools.

Paul



[...]


[...]


Install SQLite, perhaps? If the pysqlite build process can''t find
sqlite3.h then you either don''t have SQLite installed, or you don''t
have the headers for SQLite installed. I''d recommend that you check
your installed packages for the SQLite libraries (eg. libsqlite3-0 on
Ubuntu) and/or the user interface (eg. sqlite3) and for the
development package (eg. libsqlite3-dev).

If you can''t install the packages, install SQLite from source (seehttp://www.sqlite.org/) and try and persuade pysqlite to use your own
SQLite installation - there''s a setup.cfg file in the pysqlite
distribution which may need to be changed to achieve this, but I don''t
know how that interacts with setuptools.

Paul

Thank for your reaction. I don''t know also how the interaction sith
''easy_install'' is. I think that I have to install ''pysqlite'' from
source code also, because i can change ther the ''setup.cfg'' file and I
can give there where the ''libsqlie3'' is.

Nader



[...]


[...]


Install SQLite, perhaps? If the pysqlite build process can''t find
sqlite3.h then you either don''t have SQLite installed, or you don''t
have the headers for SQLite installed. I''d recommend that you check
your installed packages for the SQLite libraries (eg. libsqlite3-0 on
Ubuntu) and/or the user interface (eg. sqlite3) and for the
development package (eg. libsqlite3-dev).

If you can''t install the packages, install SQLite from source
(seehttp://www.sqlite.org/) and try and persuade pysqlite to use your own
SQLite installation - there''s a setup.cfg file in the pysqlite
distribution which may need to be changed to achieve this, but I don''t
know how that interacts with setuptools.

Paul


Thank for your reaction. I don''t know also how the interaction sith
''easy_install'' is. I think that I have to install ''pysqlite'' from
source code also, because i can change ther the ''setup.cfg'' file and I
can give there where the ''libsqlie3'' is.

I think you are ok with easyinstall here. But as Paul said - you need the
sqlite3-headers. Usually, these are in a package called sqlite3-dev or
something.

However, if you happen to have a decent distribution (read: debian-based),
you should be able to install pysqlite2 as a package itself - no need to
easy_install it.
Diez


这篇关于安装“pysqlite”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 04:41