Not able to run streamlit app due to altair

I have installed streamlit==1.18.1 and streamlit-extras in my conda virtual enviornment, and is using vs code for development. I have confirmed that i am using python interpretor in my virtual enviornment.

But whenever i try to run it.
I get the following error:-

import altair as alt
ModuleNotFoundError: No module named ‘altair’

I have tried using pip install altair and also pip install alt.

But is still getting the same error.

Hi @Rajat_Goyal and welcome to our community!

May I ask, have you ensured that you’ve installed Altair in the correct Python environment?

Thanks,
Charly