安装编译好的tensorflow(tensorflow-1.15.2+nv20.3-cp36-cp36m-linux_aarch64.whl
)报错
ERROR: Command errored out with exit status 1: /home/nx/anaconda3/envs/yolov5_4/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nxdkffg4/h5py_41b12c6e89b0401bad9f03c251aef9b1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nxdkffg4/h5py_41b12c6e89b0401bad9f03c251aef9b1/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-rsbz0mg8/install-record.txt --single-version-externally-managed --compile --install-headers /home/nx/anaconda3/envs/yolov5_4/include/python3.6m/h5py Check the logs for full command output.
经过查证是h5py没有安装导致一直卡在这里之后报错
尝试使用上诉方法先安装HDF5在pip安装h5py任然报错,发现是h5py安装没有成功
在Releases · yihuajack/h5py-aarch64 · GitHub中下载
h5py-3.1.0-cp36-cp36m-linux_aarch64.whl直接pip安装h5py成功,之后再安装tensorflow顺利完成