Could not find library geos_c or load any of its variants

前端 未结 8 1421
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  無奈伤痛
    2020-12-01 07:43

    I had the same problem, and to solve it, you need to add the lib path to ld.so.conf file.

    To do this, Open the file:

    sudo vi /etc/ld.so.conf
    

    add this line

    /usr/local/lib
    

    And then

    sudo /sbin/ldconfig
    

提交回复
热议问题