在M上安装impom(Python包)

2024-09-30 02:30:15 发布

您现在位置:Python中文网/ 问答频道 /正文

下面是我在执行sudo pip install imposm时得到的错误

    #include "tcutil.h"

             ^

    1 error generated.

    error: command 'gcc' failed with exit status 1

我相信我已经在我的Mac(osx10.8.5)上的gcc(版本:4.2.1)安装在/usr/bin/gcc下。我不知道还需要做什么。其他细节。在

^{pr2}$ 编辑:我已经在Mac上列出了列出的需求(C/C++编译器,Python库和谷歌原型Bufff)。这就是这个错误使我困惑的原因。在


Tags: installpipincludemac错误withexitsudo
2条回答

您需要安装tokyo-cabinet,impom将其用于缓存。在

如果您使用homebrew,它只是:brew install tokyo-cabinet

该模块的文档说明如下:

The PBF parser is written as a C extension and you need to have a C/C++ compiler, the Python libraries and Google Protobuf.

至少,如果这是该模块的适当文档(http://imposm.org/docs/imposm.parser/latest/install.html#installation

我真的无法研究如何在mac上安装这些组件,但是如果你没有满足这些要求,那可能就是它不能工作的原因。在

相关问题 更多 >

    热门问题