Error when running script

Summary

I’m running script:

import streamlit as slt
slt.header(‘Hi’)

Terminal:
streamlit run st.py

This is the error I see:

Traceback (most recent call last):
File "C:\Users\Admin\anaconda3\envs\pythonProject7\Scripts\streamlit-script.py
", line 6, in
from streamlit.cli import main
ModuleNotFoundError: No module named ‘streamlit.cli’
:

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.

Debug info

  • Python version: (get it with $ python --3.8)
  • Using Conda
  • OS version: Windows
1 Like

Hi @Or_Nachshon,

Thanks for posting!

Try using streamlit.web.cli instead of streamlit.cli.

Let me know if this solves the issue.

Happy Streamlit-ing! :balloon:

1 Like

Hi @Or_Nachshon, can you post the version of streamlit that you are using? You might need to upgrade it to a newer version.

I solve the same problem in this way.
Thank you a lot.

1 Like

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