簡體   English   中英

geopandas / 勻稱的兼容性

[英]geopandas / Shapely Compatibility

我正在使用 Shapely、geopandas 和 pygeos 並收到以下警告:

 UserWarning: The Shapely GEOS version (3.10.2-CAPI-1.16.0) is incompatible with the GEOS version PyGEOS was compiled with (3.10.1-CAPI-1.16.0). Conversions between both will be slow.

各自的版本是:

 Shapely 1.8.2 geopandas 0.10.2 pygeos 0.12.0

問題:

我可以通過升級/降級其中一個版本來解決這個問題嗎? 我找不到兼容版本的列表。

以下解決方案(最初在此處發布)對我有用:

pip install --force-reinstall --no-binary shapely shapely

如果遇到 OSError: /home/users/xxx/miniconda3/envs/nuplan/lib/libgeos_c.so: cannot open shared object file: No such file or directory,然后執行

conda install -c conda-forge pygeos

最終您必須解決丟失的庫問題(在我的情況下不是必需的)

導出 LD_LIBRARY_PATH=$LD_LIBARRY_PATH:$HOME/miniconda3/env/nuplan/lib

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM