Error Deploying with yfinance

I am trying to deploy a streamlit app from my GitHub with Streamlit sharing but I keep encountering an issue where it says:

ResolvePackageNotFound:

  • yfinance

Not quite sure what I should be doing differently here. I’ll link the streamlit share and the GitHub repository below.

https://share.streamlit.io/crodriguezm2016/streamlit-apps/main/streamlit.py

Nevermind, I was able to figure this out!

What was the solution?

When deploying on Streamlit Cloud, you need to tell the environment what to install. One way is to add a requirements.txt file and include the line yfinance. If you are having trouble, it will be easiest for the community to help if we can see your repository and how you’ve handled your dependencies.

1 Like

Thank you for your help

I followed the docs as well as I could.

requirements.txt
streamlit>=0.78.0
yfinance
pandas
plotly
matplotlib

https://hydrobot004-streamlit-ticker-simp-stock-goog-lrl0cy.streamlit.app/

It appears to be working! :slight_smile:

1 Like