I am trying to install h5py (2.10.0) on Jetson AGX Xavier (tried on L4T 32.6.1 and L4T 32.2.1) and get the following error:
Building wheels for collected packages: h5py
Building wheel for h5py (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /home/nvidia/Downloads/test_venv/env37/bin/python3.7 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d /tmp/pip-wheel-lvcmvyf0
cwd: /tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/
Complete output (1319 lines):
…
/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/h5py/defs.c:53:10: fatal error: Python.h: No such file or directory
#include “Python.h”
^~~~~~~~~~
compilation terminated.
error: command ‘aarch64-linux-gnu-gcc’ failed with exit status 1
ERROR: Failed building wheel for h5py
Running setup.py clean for h5py
Failed to build h5py
Installing collected packages: h5py
Running setup.py install for h5py … error
ERROR: Command errored out with exit status 1:
command: /home/nvidia/Downloads/test_venv/env37/bin/python3.7 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-_lu31pu1/install-record.txt --single-version-externally-managed --compile --install-headers /home/nvidia/Downloads/test_venv/env37/include/site/python3.7/h5py
cwd: /tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/
Complete output (1318 lines):
…
/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/h5py/defs.c:53:10: fatal error: Python.h: No such file or directory
#include “Python.h”
^~~~~~~~~~
compilation terminated.
error: command ‘aarch64-linux-gnu-gcc’ failed with exit status 1
ERROR: Command errored out with exit status 1: /home/nvidia/Downloads/test_venv/env37/bin/python3.7 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-yged9cfn/h5py_98c9faacbfa04368a2c43021475a31d0/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-_lu31pu1/install-record.txt --single-version-externally-managed --compile --install-headers /home/nvidia/Downloads/test_venv/env37/include/site/python3.7/h5py Check the logs for full command output.
What the problem can be?