Tensorflow module not found when using it through streamlit

I have posted the problem on stackoverflow, here is the link

tensorflow is working when running through python, please help.

Hi @pranavkolambkar23, welcome to the community! :wave: :partying_face:

From your description on stackoverflow, it looks like you’ve installed TensorFlow in your Python 3.7 installation, while your Streamlit app uses Python 3.9.

The solution is to install TensorFlow in Python 3.9. You likely need to run python3.9 -m pip install tensorflow or the equivalent command in your Python3.9 version of pip.

Best, :balloon:
Snehan