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.

Hi,

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

tensorflow_text: https://github.com/tensorflow/text
tensorflow_addons: https://github.com/tensorflow/addons

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

Thanks

Thank you!!!

I was able to install: tensorflow_addons !!!

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

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/unicode_script_tokenizer.py’
adding 'tensorflow_text/python/ops/viterbi_constrained_sequence_op.py’
adding 'tensorflow_text/python/ops/whitespace_tokenizer.py’
adding 'tensorflow_text/python/ops/wordpiece_tokenizer.py’
adding 'tensorflow_text/python/ops/wordshape_ops.py’
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/init.py”, line 21, in **
** from tensorflow_text.python import metrics**
** File “/home/xtend_m2/text/tensorflow_text/python/metrics/init.py”, line 20, in **
** from tensorflow_text.python.metrics.text_similarity_metric_ops import ***
** File “/home/xtend_m2/text/tensorflow_text/python/metrics/text_similarity_metric_ops.py”, line 28, in **
** gen_text_similarity_metric_ops = load_library.load_op_library(resource_loader.get_path_to_datafile(’_text_similarity_metric_ops.so’))**
** File “/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/load_library.py”, 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/_text_similarity_metric_ops.so: cannot open shared object file: No such file or directory

Can you help me with that too?
Thanks!!