NVIDIA-AI-IOT / tf_trt_models

TensorFlow models accelerated with NVIDIA TensorRT
BSD 3-Clause "New" or "Revised" License
684 stars 244 forks source link

Installation error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #25

Open AtomicJosh opened 5 years ago

AtomicJosh commented 5 years ago

On the TX2 running L4T 28.2, during the installation step:

pip3 install tensorflow-1.11.0-cp35-cp35m-linux_aarch64.whl --user

The following error was encountered:

In file included from /tmp/pip-install-s479x1s5/h5py/h5py/defs.c:654:0:
/tmp/pip-install-s479x1s5/h5py/h5py/api_compat.h:27:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

All of the libraries mentioned here were installed and the error persisted. The full output for that step is attached to this post.

logTFerror.txt

isra60 commented 5 years ago

Same problem here.

Try with

sudo apt-get install libhdf5-dev

RogerAylagas commented 5 years ago

That worked for me! I got the same issue. Then I runned -> sudo apt-get install libhdf5-dev and again runned -> pip3 install tensorflow-1.11.0-cp35-cp35m-linux_aarch64.whl --user

Installation worked successfully :)