简体   繁体   English

无法安装python imposm.parser

[英]Unable to install python imposm.parser

I am trying to install imposm.parser ( http://imposm.org/docs/imposm.parser/latest/ ) on Ubuntu 14.04 with Python 3.4. 我试图在具有Python 3.4的Ubuntu 14.04上安装imposm.parser( http://imposm.org/docs/imposm.parser/latest/ )。 I have a virtualenv activated. 我激活了virtualenv。

  • I successfully installed the following: python-dev , protobuf-compiler and libprotobuf-dev 我成功安装了以下代码: python-devprotobuf-compilerlibprotobuf-dev

When I try pip install imposm.parser I get the following error: 当我尝试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

Am I missing something? 我想念什么吗?

imposm.parser does not work with python3 imposm.parser不适用于python3

Imposm runs with Python 2.5, 2.6 and 2.7 and is tested on Linux and Mac OS X. Imposm可与Python 2.5、2.6和2.7一起运行,并已在Linux和Mac OS X上进行了测试。

I will post my own answer in case someone comes across this with the same problem. 如果有人遇到同样的问题,我将发布自己的答案。

Padraic is right - it only runs with Python 2.5, 2.6 and 2.7. Padraic是正确的-它只能在Python 2.5、2.6和2.7上运行。 However, there is a port for Python 3 here: https://github.com/tpievila/imposm-parser . 但是,这里有一个用于Python 3的端口: https : //github.com/tpievila/imposm-parser

I am currently not aware of a port for imposm. 我目前不知道端口是否可以临时安装。 This is just imposm.parser! 这只是imposm.parser!

Steps to install (Ubuntu 14.04): 安装步骤(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

Note: python-dev refers to Python 2.7 on my Ubuntu 14.04 installation. 注意: python-dev在我的Ubuntu 14.04安装上指的是python 2.7。 You also need to install python3-dev if you don't have it already. 如果还没有的话,还需要安装python3-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM