Hello. I am extremely new to coding, 4 months to be exact. Please forgive me if I am asking a question that has been answered before, I cannot find what I am looking for in the forum, on Google or YouTube.
I have a program that runs on a local server via CLI, but when I try to deploy it into Streamlit, the libraries I am using, yfinance, fbprophet are not recognized and I get an error telling me that the library is not recognized “yfinance not found”.
I have tried creating a requirements.txt file using pip freeze > requirements.txt, but the file it produces contains 100’s of dependencies and Streamlit throws some weird errors. I have tried creating the requirementrs.txt file manually with yfinance and fbprophet, but that doesn’t work either.
My question is, how do I create the requirements.txt file needed to deploy my app? No disrespect or insult intended, but if at all possible, could the explanation be in simple, as close to everyday speak as possible, I’m still struggling with tech jargon too.
Here is my requirements file for Streamlit. It’s very simple to make in a .txt file. Save in same directory as streamlit_app.py or whatever your app file is.
EDIT: I’m not sure if yfinance or fbprophet creates a problem, but make sure to include a line for streamlit itself
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.