geopandas

问题描述 投票:0回答:1

我正在尝试在arm64 上运行的Amazon Linux 2 ec2 实例上安装python 工具。它需要地理熊猫。此安装失败并显示以下消息。

pip install geopandas
Collecting geopandas
  Downloading geopandas-0.10.2-py2.py3-none-any.whl.metadata (935 bytes)
Collecting pandas>=0.25.0 (from geopandas)
  Downloading pandas-1.3.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (12 kB)
Collecting shapely>=1.6 (from geopandas)
  Downloading shapely-2.0.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.0 kB)
Collecting fiona>=1.8 (from geopandas)
  Downloading fiona-1.9.5.tar.gz (409 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 409.3/409.3 kB 9.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [4 lines of output]
      /tmp/pip-install-_c7449ly/fiona_e22cd934b7ad4d2e824ee7831b133267/setup.py:86: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
        logging.warn("Failed to get options via gdal-config: %s", str(e))
      WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
      CRITICAL:root:A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
SUPPORT_END="2025-06-30"

有人在arm64上的AL2上安装了geopandas吗?谢谢。

我尝试安装 gdal,但是许多依赖项都失败了。找不到 gdal-config。我必须从源代码构建吗?

python-3.x installation pip arm geopandas
1个回答
0
投票

这有帮助吗?

pip install .\GDAL-3.1.1-cp37-cp37m-win_amd64.whl


 
© www.soinside.com 2019 - 2024. All rights reserved.