地理界 /外形兼容性

发布于 2025-02-12 04:20:26 字数 479 浏览 1 评论 0原文

我正在使用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

问题:< / strong>

我可以通过升级 /降级其中一个版本来解决此问题吗?我找不到兼容版本的列表。

I am using Shapely, geopandas and pygeos and get the following warning:

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.

The respective versions are:

Shapely                  1.8.2
geopandas                0.10.2
pygeos                   0.12.0

Question:

Can I solve this issue by upgrading / downgrading one of the versions? I was not able to find a list of compatible versions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高速公鹿 2025-02-19 04:20:26

以下解决方案(最初发布在这里为我工作:

pip安装 - force-redinstall - 非二进制简洁的binary

如果遇到Oserror:/home/users/xxx/miniconda3/envs/nuplan/lib/lib/lib/libgeos_c.so:无法打开共享对象文件:没有此类文件或目录:做

conda install -c conda -forge pygeos

最终要解决丢失的库问题(在我的情况下不是必需的)

导出ld_library_path = $ ld_libarry_path:$ home/miniconda3/env/nuplan/lib

The following solution (originally posted here) worked for me:

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

If encounter OSError: /home/users/xxx/miniconda3/envs/nuplan/lib/libgeos_c.so: cannot open shared object file: No such file or directory, then do

conda install -c conda-forge pygeos

to fix the missing library problem eventually you have to do (not necessary in my case)

export LD_LIBRARY_PATH=$LD_LIBARRY_PATH:$HOME/miniconda3/env/nuplan/lib

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文