我正在尝试让 GeoDjango 在 mac os 上运行,但遇到了 GDAL 问题。
我已经下载并安装了 GDAL(Gdal Complete Binary),也没有问题,也从自制软件安装。
不幸的是,当我用自制的 django 安装 gdal 时,找不到 gdal 并抛出 gdal did not find 错误,之后。我从KyngChaos GeoDjango Binary django find gdal安装,但现在抛出了这个问题;
OSError: dlopen(/Library/Frameworks/gdal.framework/gdal, 6): no suitable image found. Did find:
/Library/Frameworks/gdal.framework/gdal: mach-o, but wrong architecture
/Library/Frameworks/gdal.framework/gdal: mach-o, but wrong architecture
/Library/Frameworks/GDAL.framework/Versions/3.1/GDAL: mach-o, but wrong architecture
/Library/Frameworks/GDAL.framework/Versions/3.1/GDAL: mach-o, but wrong architecture
Run Code Online (Sandbox Code Playgroud)
我认为Kyngchaos构建与arm平台不兼容
任何帮助将非常感激。
Django版本:3.0也尝试了3.2
Gdal版本:3.2/3.1/2.4所有人都尝试了
Python版本:3.8
Postgresql版本:13
Postgis/Geos安装了
gdal-config --libs:
-L/opt/homebrew/Cellar/gdal/3.2.2_3/lib -lgdal
Run Code Online (Sandbox Code Playgroud)