【问题标题】:Datasketches .whl Linux ARM64 for AWS Glue Job适用于 AWS Glue 作业的 Datasketches .whl Linux ARM64
【发布时间】:2023-01-20 13:16:11
【问题描述】:

我在 Linux ARM64 上安装 python datasketches==4.0.0 时遇到了一些问题。

当我运行 pip3 install datasketches==4.0.0 时收到以下错误:

...

  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-r9ab7pna/datasketches', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-r9ab7pna/datasketches/build/lib.linux-aarch64-cpython-37', '-DWITH_PYTHON=True', '-DCMAKE_CXX_STANDARD=11', '-DPython3_EXECUTABLE=/usr/bin/python3', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for datasketches
Failed to build datasketches
ERROR: Could not build wheels for datasketches which use PEP 517 and cannot be installed directly

我如何生成一个 whl 可以在 datasketches==4.0.0 的 Linux ARM64 上运行?

我会在 ars 胶水作业上使用这个 whl。

【问题讨论】:

    标签: python aws-glue


    【解决方案1】:

    我能够使用以下命令在 Ubuntu 22.04 AWS Graviton2 实例 (arm64) 上安装数据草图。我在尝试使用 pip 安装 pybind11 时确实遇到了错误。

    sudo apt update ; sudo apt upgrade -y
    sudo apt install python-is-python3 -y
    sudo apt install python3-pip -y
    sudo apt install cmake -y
    sudo apt install python3-pybind11 -y
    pip install datasketches==4.0.0
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-11-19
      • 2018-08-05
      • 1970-01-01
      • 1970-01-01
      • 2019-02-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多