ModuleNotFoundError: No module named 'sklearn' (pickle file)

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)File "/app/ipl_win_prediction/app.py", line 25, in <module>
    pipe=pickle.load(open('ipl.pkl','rb'))

this is my Github repository : GitHub - dipayan22/IPL_win_prediction
Can anyone solve this problem .please let me know about this .

Typo in recuriments.txt should be requirements.txt

the same error in my case

    xgb_pipe = pickle.load(pickled_model)

how can I solve?

@lalahashimli , @Dipayan_Majumder refer to: No module named sklearn

Hello, @Dipayan_Majumder,
Please add pickle in your requirements.txt.

NO, pickle is part of the python standard library.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.