(1) Install Lambda stack
(2) create virtualenv, e.g. pyenv virtualenv 3.9.5 common
(3) pip install tensorflow
And then:
echo ‘/usr/lib/python3/dist-packages/tensorflow’ | sudo tee /etc/ld.so.conf.d/tensorflow.conf
sudo ldconfig
Hope this helps somebody!