简体   繁体   English

Datasketches.whl Linux ARM64 for AWS Glue 作业

[英]Datasketches .whl Linux ARM64 for AWS Glue Job

I have some trouble to install python datasketches==4.0.0 on Linux ARM64.我在 Linux ARM64 上安装 python datasketches==4.0.0时遇到了一些麻烦。

I receive the following error when I run pip3 install 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

How can i generate a whl that will work on Linux ARM64 of datasketches==4.0.0?我如何生成一个可以在 Linux ARM64 of datasketches==4.0.0 上运行的 whl?

I would use this whl on ars glue job.我会在 ars 胶水作业上使用这个 whl。

I was able to install datasketches on Ubuntu 22.04 AWS Graviton2 instance (arm64) with the commands below.我能够使用以下命令在 Ubuntu 22.04 AWS Graviton2 实例 (arm64) 上安装数据草图。 I did get an error when trying to install pybind11 using pip.我在尝试使用 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM