why can't I import geopandas?

后端 未结 4 1538
借酒劲吻你
借酒劲吻你 2021-02-05 05:53

My only line of code is

import geopandas

and it gives me the error

OSError: Could not find libspatialindex_c library file
         


        
4条回答
  •  忘了有多久
    2021-02-05 06:15

    Linux installation steps for Docker users:

    RUN apt-get update
    RUN apt-get install -y --fix-missing curl autoconf libtool automake
    RUN curl -L https://github.com/libspatialindex/libspatialindex/archive/1.8.5.tar.gz | tar -xz
    RUN cd libspatialindex-1.8.5 && ./autogen.sh && ./configure && make && make install && ldconfig
    

提交回复
热议问题