“Im getting an error installing requirements” here’s the link to my app kindly assist
https://share.streamlit.io/mimi-dotcom/fuel-guzzler-predictor-app/autopredictor.py
“Im getting an error installing requirements” here’s the link to my app kindly assist
https://share.streamlit.io/mimi-dotcom/fuel-guzzler-predictor-app/autopredictor.py
Hi @Mimi_SR, welcome to the Streamlit community!!
You’re missing a dependency in your requirements.txt
. The error is thrown because you’re importing a package (joblib
) that hasn’t been installed. To fix the error, include joblib
in your requirements file.
Reference: ModuleNotFoundError No module named - Streamlit Docs
Happy Streamlit-ing!
Snehan
hey @snehankekre Thanks I used pickle and added it to my requirements.txt I’m now getting the pickle error even after changing the python version to 3.8 on the advanced setting something else I need to change.?
Hi @Mimi_SR,
Going forward, it would help to include the exact error message and traceback so we can help debug. “Pickle error” and “Im getting an error installing requirements” are very broad and could mean a number of things.
On deploying a fork of your repo, I received the following error:
ERROR: No matching distribution found for pickle
This knowledge base article explains when and why you might encounter this error and possible fixes. In this case, the pickle
module is part of the Python Standard Library and should not be included in requirements.txt
.
Once you remove pickle
fromrequirements.txt
, you will run into the following error as you’re using a scikit-learn model:
ModuleNotFoundError: No module named sklearn
To fix this error, include scikit-learn
in requirements.txt
. Once you’ve replaced pickle with scikit-learn, your app should deploy successfully.
References:
Happy Streamlit-ing!
Snehan
thanks it worked.!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
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.
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.
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.
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.