Adding a new package to streamlit app not working

Hello.

I am running Streamlit on Snowflake.

I am trying to experiment with a rich text editor package called “streamlit-quill” that I have not used before in streamlit. However, I cannot get past the point of importing the package despite the fact that I have installed it through the packages dropdown and it is appearing in my environment.yml file (screenshot attached). I feel like I must be missing something simple here. Any insight is appreciated!

Streamlit v1.47.0

Python v3.11

Welcome to the community and thanks for sharing your question (and screenshots)! :blush: It seems likely that the issue is due to how Snowflake’s Streamlit environment handles Python packages: not all PyPI packages are available in the Snowflake Anaconda channel, and even if you list them in your environment.yml, they may not actually be installed unless they exist in the supported channel. This is a common stumbling block for packages like streamlit-quill, which aren’t available in Snowflake’s default conda repositories, so the import fails even though it appears in your environment file and package list. See related discussions and official guidance on importing Python packages to Streamlit in Snowflake and limitations of package support in Snowflake Streamlit.

My understanding is that, for unsupported packages, you’d need to use Snowpark Container Services or another deployment method that allows pip installs, since the standard Snowflake Streamlit environment does not support arbitrary PyPI packages. If you need a rich text editor, you may want to look for alternatives available in the Snowflake Anaconda channel, or consider deploying your app outside of Snowflake for full pip support. For more details, check out the Snowflake documentation and join the community discussion for workarounds and updates.

Sources:

Is streamlit-quill not within the Snowflake Anaconda channel? From what I have seen I think it is.