Install streamlit with rye

I am trying to install streamlit using rye, instead of creating an env and then use the pip install command. I have run :

  • rye add streamlit
  • rye sync
    but when i run streamlit hello, it fails and I get : It looks like the streamlit command is not found on your system, which means Streamlit is not installed or not properly configured in your PATH.
    To install Streamlit, you can use the following command

Has anyone encountered this issue?

I believe you need to do rye run streamlit hello, or else activate the virtual environment first – you can read more here Basics - Rye