我试图用Python3.4在Ubuntu14.04上安装imposm.parser (http://imposm.org/docs/imposm.parser/latest/)。我激活了一个虚拟者。
当我尝试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我是不是遗漏了什么?
发布于 2015-04-05 16:18:03
我会贴出我自己的答案,以防有人遇到同样的问题。
Padraic是对的-它只在Python2.5、2.6和2.7中运行。但是,这里有一个Python3的端口: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指的是我的Ubuntu14.04安装上的Python2.7。如果您还没有安装python3-dev,您还需要安装它。
发布于 2015-04-05 15:57:59
imposm.parser不适用于python3
Imposm运行于Python2.5、2.6和2.7,并在Linux和Mac上进行了测试。
https://stackoverflow.com/questions/29459172
复制相似问题