Streamlit-extras install

streamlit-extras not functioning

Hi Streamlit Community. I am trying to use streamlit-extras package. I have installed it on my virtual environment (I am using Visual Studio). But when I use any components, it is saying ModuleNotFoundError: No module named ‘streamlit_extras.stoggle’.

I installed both using pip and pip3

pip install stramlit-extras
pip3 install streamlit-extras


from streamlit_extras.stoggle import stoggle
stoggle("Here's a little secret", "Streamlit-extras is so cooool")

ModuleNotFoundError: No module named ‘streamlit_extras.stoggle’:

It is the same in every component of streamlit-extras, but it is showing only when I run the code. But on the editor, no any red underline.

Can anyone help me with that please?

  • Streamlit version: 1.17

I had similar. For me I think it was because streamlit-extras required python 3.8 or later and I had 3.7.

1 Like

What version of python are you using @Usmanjon_Abduraimov?

Could you try doing python -m pip install --upgrade streamlit-extras?

2 Likes

Thank you for answer and sorry for replying late. I am not well aware of environments so it might be the reason. I will learn, try and inform. Thanks again @blackary

Just a comment from my side, since I have encountered the same problem.
The root cause might be, that your python-version is outdated.

If so, upgrade your python version and, if needed, adjust your settings for the python interpreter in your IDE (mine was PyCharm). That could fix it.

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