geopandas: QST:sjoin_nearest can't be used
-
I have searched the [geopandas] tag on StackOverflow and GIS StackExchange for similar questions.
-
I have asked my usage related question on StackOverflow or GIS StackExhange.
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)
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 usingconda install -c conda-forge geopandas=0.10
The solution was pip uninstall pygeos and then installing pygeos using conda forgeconda install pygeos --channel conda-forge
from the geopandas docs after this process geopandas.show_versions() worked and sjoin workedHi, 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?