Error installing

“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!! :wave: :partying_face:

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! :balloon:
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. :slightly_smiling_face:

References:

  1. ERROR No matching distribution found for - Streamlit Docs
  2. ModuleNotFoundError No module named - Streamlit Docs

Happy Streamlit-ing! :balloon:
Snehan

thanks it worked.!!

1 Like