How to install tensorflow_text and tensorflow_addons from source

Hello, I would love for someone to help me.
I’m trying to install tensorflow on Jetson Nano with JetPack 4.4.
I installed tensorflow version 2.3.0 successfully.
I need to have the libraries - tensorflow_text and tensorflow_addons.
and I tried to instal them but for some reason they are not found.
If anyone can help me to install these libraries from source I will be thankful for that.


We don’t have tensorflow_text and tensorflow_addons pre-compiled package.
You will need to compile it from source directly:


The detailed steps can be found in their tutorial.
For example:


Thank you!!!

I was able to install: tensorflow_addons !!!

And it seems I have successfully installed: tensorflow_text
after running this command ./oss_scripts/

I have this warning:
bazel-out/aarch64-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.

but after a few moments I saw it success:

INFO: Elapsed time: 1165.172s, Critical Path: 200.38s
INFO: 815 processes: 815 local.
INFO: Build completed successfully, 2110 total action

and in the last lines I have many like this:

adding 'tensorflow_text/python/ops/’
adding 'tensorflow_text/python/ops/’
adding 'tensorflow_text/python/ops/’
adding 'tensorflow_text/python/ops/’
adding 'tensorflow_text/python/ops/’
adding 'tensorflow_text-2.3.0.dist-info/DESCRIPTION.rst’
adding 'tensorflow_text-2.3.0.dist-info/metadata.json’
adding 'tensorflow_text-2.3.0.dist-info/top_level.txt’
adding 'tensorflow_text-2.3.0.dist-info/WHEEL’
adding 'tensorflow_text-2.3.0.dist-info/METADATA’
adding 'tensorflow_text-2.3.0.dist-info/RECORD’

so it seems it OK.

But still, I’m getting this error:

ERROR: Could not find a version that satisfies the requirement tensorflow-text<2.4,>=2.3; sys_platform != “win32” (from rasa) (from versions: none)
ERROR: No matching distribution found for tensorflow-text<2.4,>=2.3; sys_platform != “win32” (from rasa)

and when I try to import tensorflow_text from text path
I get the following error:

File “”, line 1, in
** File “/home/xtend_m2/text/tensorflow_text/”, line 21, in **
** from tensorflow_text.python import metrics**
** File “/home/xtend_m2/text/tensorflow_text/python/metrics/”, line 20, in **
** from tensorflow_text.python.metrics.text_similarity_metric_ops import ***
** File “/home/xtend_m2/text/tensorflow_text/python/metrics/”, line 28, in **
** gen_text_similarity_metric_ops = load_library.load_op_library(resource_loader.get_path_to_datafile(’’))**
** File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/”, line 58, in load_op_library**
** lib_handle = py_tf.TF_LoadLibrary(library_filename)**
tensorflow.python.framework.errors_impl.NotFoundError: /home/xtend_m2/text/tensorflow_text/python/metrics/ cannot open shared object file: No such file or directory

Can you help me with that too?


Based on the error, it seems like you are using a window-based source.
Since Jetson is an Ubuntu based system, you will need to use the ubuntu-based source.