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
请帮助和解决方案:)
谢谢
最佳答案
我这里没有Ubuntu 10.10,但您可以按照以下建议进行操作
https://github.com/mapnik/mapnik/wiki/UbuntuInstallation