ImportError:没有名为mapnik的模块(Ubuntu 10.10)

1 投票
1 回答
2408 浏览
提问于 2025-04-17 10:41

在运行 generate_image.py 这个文件时,出错了,路径是 /bin/mapnik,它想要显示的图片是 image.png。

dewirobiatul@dewi:~/bin/mapnik$ ./generate_image.py  Traceback (most
recent call last):   File "./generate_image.py", line 6, in <module>
    import mapnik ImportError: No module named mapnik dewirobiatul@dewi:~/bin/mapnik$

我尝试用下面的命令重新安装 mapnik:

sudo python scons/scons.py configure INPUT_PLUGINS=all OPTIMIZATION=3 SYSTEM_FONTS=/usr/share/fonts/truetype/

但是

python: can't open file 'scons/scons.py': [Errno 2] No such file or directory

请帮帮我,给我一些解决办法 :) 谢谢!

1 个回答

1

我这里没有Ubuntu 10.10,但你可以参考以下建议:

https://github.com/mapnik/mapnik/wiki/UbuntuInstallation

撰写回答