ModuleNotFoundError: No module named ‘altair.vegalite.v4’

can anyone tell me the solution for this ?

You might be able to fix it by explicitly installing an earlier version of altair

pip install "altair<5"

You could alternatively upgrade to a newer version of streamlit, since 1.23.0 supports altair v5.

pip install "streamlit>=1.23.0"

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.