I need to use Tensorflow 2.7.0 or later with Python 3.7 or later on Jetson nano with JetPack 4.6.1.
I’ve tried using
python3.7 -m pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v461 tensorflow==2.7.0+nv22.01
But it gives
Looking in indexes: https://pypi.org/simple, https://developer.download.nvidia.com/compute/redist/jp/v461
ERROR: Could not find a version that satisfies the requirement tensorflow==2.7.0+nv22.01 (from versions: 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0)
ERROR: No matching distribution found for tensorflow==2.7.0+nv22.01
Checked the Index of /compute/redist/jp/v461/tensorflow and found tensorflow-2.7.0+nv22.1-cp36-cp36m-linux_aarch64.whl which only available for Python 3.6.
Tried to install Tensorflow 2.10.0 but I got this error during import
>>> import tensorflow as tf
/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow_io/python/ops/__init__.py:98: UserWarning: unable to load libtensorflow_io_plugins.so: unable to open file: libtensorflow_io_plugins.so, from paths: ['/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow_io/python/ops/libtensorflow_io_plugins.so']
caused by: ["[Errno 2] The file to load file system plugin from does not exist.: '/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow_io/python/ops/libtensorflow_io_plugins.so'"]
warnings.warn(f"unable to load libtensorflow_io_plugins.so: {e}")
/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow_io/python/ops/__init__.py:104: UserWarning: file system plugins are not loaded: unable to open file: libtensorflow_io.so, from paths: ['/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow_io/python/ops/libtensorflow_io.so']
caused by: ['/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow_io/python/ops/libtensorflow_io.so: cannot open shared object file: No such file or directory']
warnings.warn(f"file system plugins are not loaded: {e}")
Tried using Tensorflow 2.7.0 for Python 3.7 wheel from Tensorflow-bin, but still error during import.
>>> import tensorflow as tf
Traceback (most recent call last):
File "/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow/__init__.py", line 41, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow/python/__init__.py", line 40, in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 80, in <module>
f'{traceback.format_exc()}'
ImportError: Traceback (most recent call last):
File "/home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/acd/accident-crime-detection/acd/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors for some common causes and solutions.
If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.
This error persist even after I installed libc6 and libc6-dev using
sudo apt-get install -y libc6 libc6-dev
What should I do? should I install the Tensorflow 2.7.0 from the source?