AttributeError: module 'streamlit' has no attribute 'write'

  1. Installed locally via Pycharm on a Windows 11 laptop. Python 3.13
  2. Streamlit version 1.45.1
  3. Invoked either through Pycharm, or the terminal: python3 -m streamlit run streamlit.py
  4. Code is:
  5. import streamlit as st
  6. st.write(“Hello ,let’s learn how to build a streamlit app together”)