Could not find library geos_c or load any of its variants

前端 未结 8 1424
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 07:31

I use python in fedora 19. I wanted to run the following line Python: import shapely.geometry the following error appears:

OSError: C

8条回答
  •  -上瘾入骨i
    2020-12-01 07:37

    Shapely loads geos via ctypes.

    Try this in your python and see if you get anything:

    from ctypes.util import find_library
    find_library('geos_c')
    

    If it doesn't work, then your geos installation is probably messed up. According to this, your geos should be in /usr/lib/libgeos_c.so.1. Is your library actually there?

提交回复
热议问题