Installation error Tensorflow on Jetson NX Jetpack 4.4

I have Jetpack 4.4 installed on 128GB mem card
Follow instruction from https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html#install
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 https://github.com/pypa/pip/issues/8368.
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