How to install geos on debian raspberry pi

拥有回忆 提交于 2019-12-11 04:02:04

问题


Hi I am trying to install geos on a raspberry pi running rasbian wheezy so that I can include the shapely modules in my python scripts. I tried using: git clone git://git.debian.org/git/pkg-grass/geos

this downloads properly, but when I try to run my python script it gives me a traceback error saying OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']

have I put geos in the wrong place? is there a special way to build the files? Thanks for your help!


回答1:


You have just downloaded the sources so far. I guess you wanted to install the binary package instead. To install it, type (as root):

apt-get install libgeos++



回答2:


Shapely uses the GEOS C API. Install it (and the dependencies) with:

apt-get install libgeos-c1

Also, if you need the Cython speedups for Shapely, you will need:

apt-get install libgeos-dev


来源:https://stackoverflow.com/questions/17777613/how-to-install-geos-on-debian-raspberry-pi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!