why can't I import geopandas?

后端 未结 4 1607
借酒劲吻你
借酒劲吻你 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:05

    I had the same issue while working in Linux Subsystem at Windows 10 (speaking about this). What helped was installing the version for developers using apt. Namely:

    sudo apt install libspatialindex-dev did the job.

    I did not need to work with make.

    edit: Nice to see my answer has been upvoted so many times; in the time of writing it, however, this was not the most popular answer and it was preceeded by the other answers that suggested using make. This is why I am referring to this command; and I think the other answers are worth reading anyway.

提交回复
热议问题