My code is:
import torch
from transformers import BertTokenizer
from IPython.display import clear_output
I got error in line from transformers import BertTokenizer:
ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /mnt/home/wbj/anaconda3/envs/pytorch/lib/python3.8/site-packages/tokenizers/tokenizers.cpython-38-x86_64-linux-gnu.so)
and I found an answer that the problem is due to the file /lib/x86_64-linux-gnu/libm.so.6, when I use code strings /lib/x86_64-linux-gnu/libm.so.6 | grep GLIBC_ I get the output
GLIBC_2.2.5
GLIBC_2.4
GLIBC_2.15
GLIBC_2.18
GLIBC_2.23
GLIBC_PRIVATE
The file doesn't support GLIBC_2.29. How can I fix the problem?