简体   繁体   中英

Datasketches .whl Linux ARM64 for AWS Glue Job

I have some trouble to install python datasketches==4.0.0 on Linux ARM64.

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

I would use this whl on ars glue job.

I was able to install datasketches on Ubuntu 22.04 AWS Graviton2 instance (arm64) with the commands below. I did get an error when trying to install pybind11 using pip.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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