[英]Getting "AttributeError: module 'shapely.geos' has no attribute 'lgeos'"
[英]Couldn't able to find & install geos_c for shapely on mac?
我正在嘗試運行具有以下 pyproject.toml 的 api:
[tool.poetry.dependencies]
python = "3.10.5"
Flask = "2.0.1"
gunicorn = "^20.1.0"
pymongo = "^3.12.2"
marshmallow = "^3.14.1"
dnspython = "^2.1"
requests = "^2.26.0"
sentry-sdk = {version = "^1.5.0", extras = ["flask"]}
shapely = "^1.8.0"
numpy = "^1.21.4"
jiwer = "2.2.0"
types-requests = "^2.26.1"
當我運行它時,它會引發以下錯誤:
OSError: Could not find lib geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'].
我一直在嘗試:使用pip install geos
,它給出了 0.2.3 版本,這當然不是我的觀察結果。 還有這幾個鏈接: OSError geos_c 找不到或這個: 關於 geos_c 的另一個 SO 問題所以,想問有沒有其他方法可以在 mac m1 上安裝gos_c ?
該線程中提到了一些選項。
對我來說,安裝最新版本的 shapely (1.8.4) 解決了我的 M1 的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.