Tensorflow-bin: 'GLIBC_2.29' error not found for Python 3.7 + Tensorflow v2

Thank you and I was going to install Python 3.7 + Tensorflow v2 on my raspberry pi 4, Buster.

Everything went well and pip3 list can see the v2 tensorflow. But when import the tf in python3, below error happened:

Traceback (most recent call last): File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow.py”, line 58, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py”, line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description) File “/usr/lib/python3.7/imp.py”, line 242, in load_module return load_dynamic(name, filename, file) File “/usr/lib/python3.7/imp.py”, line 342, in load_dynamic return _load(spec) ImportError: /lib/arm-linux-gnueabihf/libm.so.6: version ‘GLIBC_2.29’ not found (required by /home/pi/.local/lib/python3.7/site-packages/tensorflow_core/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/pi/.local/lib/python3.7/site-packages/tensorflow/init.py”, line 98, in <module> from tensorflow_core import * File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/init.py”, line 40, in <module> from tensorflow.python.tools import module_util as _module_util File “/home/pi/.local/lib/python3.7/site-packages/tensorflow/init.py”, line 50, in getattr module = self._load() File “/home/pi/.local/lib/python3.7/site-packages/tensorflow/init.py”, line 44, in _load module = _importlib.import_module(self.name) File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/init.py”, line 49, in <module> from tensorflow.python import pywrap_tensorflow File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow.py”, line 74, in <module> raise ImportError(msg) ImportError: Traceback (most recent call last): File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow.py”, line 58, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py”, line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() File “/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description) File “/usr/lib/python3.7/imp.py”, line 242, in load_module return load_dynamic(name, filename, file) File “/usr/lib/python3.7/imp.py”, line 342, in load_dynamic return _load(spec) ImportError: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29’ not found (required by /home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/_pywrap_tensorflow_internal.so)

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

I tried the 【Appendix】 C Library + Tensorflow v1.x.x / v2.x.x you provided but not helping.

Any good idea how to go on?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Thanks for the super fast reply.

I am on the same 10 (buster) as the rsult of lsb_release, but the ldd --version output shows glibc = 2.28.

So far the buster only provides 2.28 as I can check. I am tempted to compile and upgrade the glibc to 2.29 by myself, but not sure if it will break everything. Actually, glibc is updated with 2.30 now!

@shineofleo Committed TF v2.0.0 wheel for glibc2.28.

Simple installation procedure of glibc2.29. glibc2.29 is installed at the same time as openjdk-8-jdk is installed. It is recommended to take an image backup because the environment may become unstable. glibc2.29 has pre-built binaries on “sid”. How to install openjdk-8-jdk on Raspbian Buster armhf or How to install openjdk-8-jdk on Debian Buster (Debian 10) armhf

glibc2.29 https://packages.debian.org/search?keywords=glibc&searchon=names&suite=sid&section=all