Installation error Tensorflow on Jetson NX Jetpack 4.4

I have Jetpack 4.4 installed on 128GB mem card
Follow instruction from Installing TensorFlow for Jetson Platform :: NVIDIA Deep Learning Frameworks Documentation
Done this 2 times now and get same error.
During installation of sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v44 tensorflow

I get error message filling the entire terminal.
Clean up does not work…
What to do?

It breaks:

sing cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting zipp>=0.5
Using cached zipp-3.1.0-py3-none-any.whl (4.9 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Building wheels for collected packages: grpcio
Building wheel for grpcio (setup.py) … -^[[A^[[error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-uaaaet0n/grpcio/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-install-uaaaet0n/grpcio/setup.pyβ€™β€œ'β€β€˜;f=getattr(tokenize, β€˜"β€™β€œβ€˜openβ€™β€β€™β€œβ€˜, open)(file);code=f.read().replace(β€™β€β€˜"’\r\nβ€™β€œ'β€β€˜, β€˜"’"’\nβ€™β€œ'β€β€˜);f.close();exec(compile(code, file, β€˜"β€™β€œβ€˜exec’”’"β€˜))’ bdist_wheel -d /tmp/pip-wheel-zc277xra
cwd: /tmp/pip-install-uaaaet0n/grpcio/
Complete output (2038 lines):
ASM Builds for BoringSSL currently not supported on: linux-aarch64
Found cython-generated files…
running bdist_wheel
running build
running build_py
running build_project_metadata
creating python_build
creating python_build/lib.linux-aarch64-3.6
creating python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_common.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_channel.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_plugin_wrapping.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_runtime_protos.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_grpcio_metadata.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_simple_stubs.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_server.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_auth.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/init.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_utilities.py β†’ python_build/lib.linux-aarch64-3.6/grpc
copying src/python/grpcio/grpc/_compression.py β†’ python_build/lib.linu

…
python_build/temp.linux-aarch64-3.6/third_party/boringssl-with-bazel/src/ssl
creating python_build/temp.linux-aarch64-3.6/third_party/cares
creating python_build/temp.linux-aarch64-3.6/third_party/cares/cares
creating python_build/temp.linux-aarch64-3.6/third_party/re2
creating python_build/temp.linux-aarch64-3.6/third_party/re2/re2
creating python_build/temp.linux-aarch64-3.6/third_party/re2/util
creating python_build/temp.linux-aarch64-3.6/third_party/upb
creating python_build/temp.linux-aarch64-3.6/third_party/upb/upb
creating python_build/temp.linux-aarch64-3.6/third_party/zlib
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -D_WIN32_WINNT=1536 -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern β€œC” attribute((visibility (β€œdefault”))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python3.6m -c src/core/ext/filters/census/grpc_context.cc -o python_build/temp.linux-aarch64-3.6/src/core/ext/filters/census/grpc_context.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -D_WIN32_WINNT=1536 -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern β€œC” attribute((visibility (β€œdefault”))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python3.6m -c src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc -o python_build/temp.linux-aarch64-3.6/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -D_WIN32_WINNT=1536 -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern β€œC” attribute((visibility (β€œdefault”))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python3.6m -c src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc -o python_build/temp.linux-aarch64-3.6/src/core/ext/transport/chttp2/client/secure/secure_channel_create.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -D_WIN32_WINNT=1536 -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern β€œC” attribute((visibility (β€œdefault”))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python3.6m -c src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c -o python_build/temp.linux-aarch64-3.6/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.o -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -D_WIN32_WINNT=1536 -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern β€œC” attribute((visibility (β€œdefault”))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python3.6m -c src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c -o python_build/temp.linux-aarch64-3.6/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.o -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -D_WIN32_WINNT=1536 -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_

Running setup.py clean for grpcio
Building wheel for termcolor (setup.py) … done
Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=5679 sha256=f47507cd4743c96eebdc996f9b2425505b6012812085920d082fde5e1bf26bf3
Stored in directory: /root/.cache/pip/wheels/93/2a/eb/e58dbcbc963549ee4f065ff80a59f274cc7210b6eab962acdc
Building wheel for gast (setup.py) … done
Created wheel for gast: filename=gast-0.2.2-py3-none-any.whl size=7635 sha256=a7c345d08b71394bcd105d7a5f5314501849b80db1753bd42bc2f9d7bd86360f
Stored in directory: /root/.cache/pip/wheels/19/a7/b9/0740c7a3a7d1d348f04823339274b90de25fbcd217b2ee1fbe
Successfully built wrapt termcolor gast
Failed to build grpcio
DEPRECATION: Could not build wheels for grpcio which do not use PEP 517. pip will fall back to legacy β€˜setup.py install’ for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at Deprecate call to 'setup.py install' when building a wheel failed for source distributions without pyproject.toml Β· Issue #8368 Β· pypa/pip Β· GitHub.
Installing collected packages: absl-py, tensorflow-estimator, wrapt, grpcio, werkzeug, zipp, importlib-metadata, markdown, tensorboard, termcolor, google-pasta, gast, opt-einsum, astor, tensorflow
Running setup.py install for grpcio … error
command: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-z9_r69g8/grpcio/setup.pyβ€™β€œ'β€β€˜; file=β€™β€œ'β€β€˜/tmp/pip-install-z9_r69g8/grpcio/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-record-3462a0ub/install-record.txt --single-version-exte

Hi,

You should try by using β€œpip3 install setuptools==49.6.0”, it worked for me.

1 Like

Thanks. For me too. Found a solution in