Problem with importing tensorflow

I have
Ubuntu= 20.04
TF= 1.15

This will work fine with GPU but I cannot use tensorboard and given message “cannot find tensorflow-serving”. Then I install tensorflow-serving by “pip3 install --user tensorflow-serving-api”. After that my tensorflow version change 1.15 to 2.4.1.

Then I install tensorflow 1.15 with the command given by your team

sudo apt install python3-tensorflow-legacy-cuda

but this cannot change the tensorflow version 2.4.1 to 1.15.

Then I use another command also given by your team
to remove all NVidia software, deep learning libraries, and then reinstall Lambda Stack.

sudo rm -f /etc/apt/sources.list.d/{graphics,nvidia,cuda}*;
COLUMNS=200 dpkg -l |
awk ‘/cuda|lib(accinj64|cu(blas|dart|dnn|fft|inj|pti|rand|solver|sparse)|magma|nccl|npp|nv[^p])|nv(idia|ml)|tensor(flow|board)|torch/ { print $2 }’ |
sudo xargs -or apt -y remove --purge && LAMBDA_REPO=$(mktemp) &&
wget -O${LAMBDA_REPO} &&
sudo dpkg -i ${LAMBDA_REPO} && rm -f ${LAMBDA_REPO} &&
sudo apt-get -y update && sudo apt-get -y install lambda-stack-cuda

after that when i import tensorflow gives the following error message

import tensorflow as tf
2021-04-11 22:06:08.760894: I tensorflow/stream_executor/platform/default/] Successfully opened dynamic library
Traceback (most recent call last):
File “”, line 1, in
File “/home/user1/.local/lib/python3.8/site-packages/tensorflow/”, line 436, in
File “/home/user1/.local/lib/python3.8/site-packages/tensorflow/python/framework/”, line 153, in load_library
tensorflow.python.framework.errors_impl.NotFoundError: /usr/lib/python3/dist-packages/tensorflow/core/kernels/ undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringB5cxx11ERKNS_15OpKernelContextEb

Actually i need tensorflow 1.15

Thanks in advance