# Problem with importing tensorflow

## post by Nurunnabi on Apr 11, 2021

I have

Ubuntu= 20.04  
TF= 1.15  
CUDA=11.2  
cuDNN=7.6.5

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.

```bash
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} https://lambdalabs.com/static/misc/lambda-stack-repo.deb &&  
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/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0

Traceback (most recent call last):

File “”, line 1, in

File “/home/user1/.local/lib/python3.8/site-packages/tensorflow/__init__.py”, line 436, in

_ll.load_library(_main_dir)

File “/home/user1/.local/lib/python3.8/site-packages/tensorflow/python/framework/load_library.py”, line 153, in load_library

py_tf.TF_LoadLibrary(lib)

tensorflow.python.framework.errors_impl.NotFoundError: /usr/lib/python3/dist-packages/tensorflow/core/kernels/libtfkernel_sobol_op.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringB5cxx11ERKNS_15OpKernelContextEb
```

Actually i need tensorflow 1.15

Thanks in advance
