geopandas: QST:sjoin_nearest can't be used


Question about geopandas

Note: If you’d still like to submit a question, please read this guide detailing how to provide the necessary information for us to reproduce your question.

# Your code here, if applicable
[NotImplementedError: Currently, only PyGEOS >= 0.10.0 supports `nearest_all`. To use PyGEOS within GeoPandas, you need to install PyGEOS: 'conda install pygeos' or 'pip install pygeos']

But,my geopandas version is 0.10.2. And my pygeos version is 0.12.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 28 (12 by maintainers)

Most upvoted comments

nope,i can’t import pygeos.So,I can’t use this function!

Hi, just ran into thie issue myself, including seeing pygeos on pip list and not seeing it on geopandas.show_versions() I’ve installed pygeos using pip install, but I guess I’ve updated gepadnas using conda install -c conda-forge geopandas=0.10 The solution was pip uninstall pygeos and then installing pygeos using conda forge conda install pygeos --channel conda-forge from the geopandas docs after this process geopandas.show_versions() worked and sjoin worked

Hi, are you sure you are running the code in the same environment where you have pygeos? Can you post what geopandas.show_versions() returns in that environment?