无法安装 python imposm.parser

Unable to install python imposm.parser

我正在尝试在 Ubuntu 14.04 和 Python 3.4 上安装 imposm.parser (http://imposm.org/docs/imposm.parser/latest/)。我激活了 virtualenv。

当我尝试 pip install imposm.parser 时,出现以下错误:

Collecting imposm.parser
Downloading imposm.parser-1.0.7.tar.gz
Traceback (most recent call last):
  File "<string>", line 20, in <module
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

  File "<string>", line 20, in <module

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-l_5r7vwz/imposm.parser

我是不是漏掉了什么?

imposm.parser 不适用于 python3

Imposm runs with Python 2.5, 2.6 and 2.7 and is tested on Linux and Mac OS X.

我会 post 我自己的答案,以防有人遇到同样的问题。

Padraic 是对的 - 它只能在 Python 2.5、2.6 和 2.7 上运行。但是,这里有 Python 3 的端口:https://github.com/tpievila/imposm-parser.

我目前不知道用于 imposm 的端口。这只是 imposm.parser!

安装步骤 (Ubuntu 14.04):

$ sudo apt-get install build-essential python-dev protobuf-compiler libprotobuf-dev
$ pip install git+git://github.com/tpievila/imposm-parser.git

注意: python-dev 指的是我的 Ubuntu 14.04 安装上的 Python 2.7。如果您还没有安装 python3-dev,您还需要安装它。