taichi: taichi version 0.7.21 requires libm.so.6: version `GLIBC_2.29' which is unavailable on Ubuntu 18.04.5

After installing latest taichi through pip install --upgrade taichi on my Ubuntu 18.04 machine, I got the following error in ‘import taichi_core as core’:

ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by  home/dell/anaconda3/envs/physics/lib/python3.8/site-packages/taichi/core/../lib/taichi_core.so)
Consider installing libtinfo5: sudo apt-get install libtinfo5

But I have already installed libtinfo5. I use strings /lib/x86_64-linux-gnu/libm.so.6 | grep GLIBC_ and apparently Ubuntu 18.04 supports glibc up to version 2.27.

Reverting to the previous version pip install taichi==0.7.16 fixed the issue.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

@k-ye @cloudhan After installing libz3-4, taichi 0.7.23 could work with python 3.6/3.7/3.8 on my WSL now.

@k-ye I met the same issue.
strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_ gives

GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_PRIVATE

so the pip package cannot work on my machine. To my knowledge, you should follow PEP 513/571/599 to build you package.