# Tf 2.5 in a virtualenv on ubuntu 20.04

May 19, 2021

1. Install Lambda stack  
2. Create virtualenv, e.g. `pyenv virtualenv 3.9.5 common`  
3. `pip install tensorflow`

And then:

```bash
echo ‘/usr/lib/python3/dist-packages/tensorflow’ | sudo tee /etc/ld.so.conf.d/tensorflow.conf
sudo ldconfig
```

Hope this helps somebody!

---

# Problem with tensorflow in virtual environment

Mar 3, 2021

Breaking news:  
It’s here:  
`/usr/lib/python3/dist-packages/tensorflow`

Moreover, where is libcudnn?  
`ldconfig -p | grep libcudnn`  
returns nothing

---

I also have this issue, using pyenv. Specifically, the system tensorflow does this:

```python
import tensorflow as tf
2021-03-04 02:09:28.476244: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2021-03-04 02:09:28.478779: I tensorflow…
```

---

# ETA for tensorflow 2.4 as part of lambda stack?

Jan 14, 2021

Hello,  
Is there an ETA for when tensorflow 2.4 will be available as part of the lambda stack?  
Thank you,  
Alex
