Failed to install Tensorflow for Python 3.6 + JetPack4.2

I tried to install Tensorflow for Python 3.6 + JetPack4.2 by

pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v42 tensorflow-gpu==1.13.1+nv19.4 --user

based on this guide https://devtalk.nvidia.com/default/topic/1038957/jetson-tx2/tensorflow-for-jetson-tx2-/.

It failed in the middle, and got the error:

...
    building 'h5py.defs' extension
    creating build/temp.linux-aarch64-3.6
    creating build/temp.linux-aarch64-3.6/tmp
    creating build/temp.linux-aarch64-3.6/tmp/pip-build-_k_a4580
    creating build/temp.linux-aarch64-3.6/tmp/pip-build-_k_a4580/h5py
    creating build/temp.linux-aarch64-3.6/tmp/pip-build-_k_a4580/h5py/h5py
    aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DH5_USE_16_API -I./h5py -I/tmp/pip-build-_k_a4580/h5py/lzf -I/opt/local/include -I/usr/local/include -I/home/hongbo-miao/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c /tmp/pip-build-_k_a4580/h5py/h5py/defs.c -o build/temp.linux-aarch64-3.6/tmp/pip-build-_k_a4580/h5py/h5py/defs.o
    In file included from /home/hongbo-miao/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
                     from /home/hongbo-miao/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                     from /home/hongbo-miao/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from /tmp/pip-build-_k_a4580/h5py/h5py/api_compat.h:26,
                     from /tmp/pip-build-_k_a4580/h5py/h5py/defs.c:637:
    /home/hongbo-miao/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it with " \
      ^~~~~~~
    In file included from /tmp/pip-build-_k_a4580/h5py/h5py/defs.c:637:0:
    /tmp/pip-build-_k_a4580/h5py/h5py/api_compat.h:27:10: fatal error: hdf5.h: No such file or directory
     #include "hdf5.h"
              ^~~~~~~~
    compilation terminated.
    error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_k_a4580/h5py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-f4u7j6sv-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-_k_a4580/h5py/

Any idea? Thanks

Found the answer at https://devtalk.nvidia.com/default/topic/1038957/jetson-tx2/tensorflow-for-jetson-tx2-/post/5331637/#5331637

I succeed to install following this order

sudo apt install libhdf5-serial-dev hdf5-tools
pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v42 tensorflow-gpu==1.13.1+nv19.4 --user