无法安装python imposm.parser

时间:2015-04-05 15:56:37

标签: python imposm

我正在尝试使用Python 3.4在Ubuntu 14.04上安装imposm.parser(http://imposm.org/docs/imposm.parser/latest/)。我有一个virtualenv激活。

  • 我成功安装了以下内容: python-dev protobuf-compiler libprotobuf-dev

当我尝试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

我错过了什么吗?

2 个答案:

答案 0 :(得分:3)

imposm.parser不适用于python3

  

Imposm运行Python 2.5,2.6和2.7,并在Linux和Mac OS X上进行测试。

答案 1 :(得分:0)

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

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,还需要安装。{/ p>