Installing tensorflow on Jetson nano

sudo pip3 install --extra-index-url Index of /compute/redist/jp/v461 tensorflow==2.7.0+nv22.1
I’m getting an error while installing tensorflow 2 library
error: Command “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 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=1 -DHAVE_CBLAS -Ibuild/src.linux-aarch64-3.6/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-aarch64-3.6/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python3.6m -Ibuild/src.linux-aarch64-3.6/numpy/core/src/private -Ibuild/src.linux-aarch64-3.6/numpy/core/src/private -Ibuild/src.linux-aarch64-3.6/numpy/core/src/private -c numpy/core/src/multiarray/numpyos.c -o build/temp.linux-aarch64-3.6/numpy/core/src/multiarray/numpyos.o” failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-iefpyl00/numpy_a095180faf8d4f2d95757ac25158d02c/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-iefpyl00/numpy_a095180faf8d4f2d95757ac25158d02c/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-yhypj89z/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-pqi4mzf6/normal --compile --install-headers /tmp/pip-build-env-pqi4mzf6/normal/include/python3.6m/numpy Check the logs for full command output.

WARNING: Discarding https://files.pythonhosted.org/packages/a7/81/20d5d994c91ed8347efda90d32c396ea28254fd8eb9e071e28ee5700ffd5/h5py-3.1.0.tar.gz#sha256=1e2516f190652beedcb8c7acfa1c6fa92d99b42331cbef5e5c7ec2d65b0fc3c2 (from Links for h5py) (requires-python:>=3.6). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-pqi4mzf6/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i Simple index --extra-index-url Index of /compute/redist/jp/v461 – ‘numpy==1.14.5; python_version == “3.7”’ ‘Cython>=0.29.14; python_version >= “3.8”’ pkgconfig ‘numpy==1.12; python_version == “3.6”’ ‘numpy==1.19.3; python_version >= “3.9”’ ‘numpy==1.17.5; python_version == “3.8”’ ‘Cython>=0.29; python_version < “3.8”’ Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement h5py~=3.1.0 (from tensorflow) (from versions: 2.2.1, 2.3.0b1, 2.3.0, 2.3.1, 2.4.0b1, 2.4.0, 2.5.0, 2.6.0, 2.7.0rc2, 2.7.0, 2.7.1, 2.8.0rc1, 2.8.0, 2.9.0rc1, 2.9.0, 2.10.0, 3.0.0rc1, 3.0.0, 3.1.0)
ERROR: No matching distribution found for h5py~=3.1.0

Hi,

Please follow the command in the below topic:

Thanks.