from sklearn.externals import joblib
import pickle
import pandas as pd
# Load the model from the file
knn_from_joblib = joblib.load('lm.pkl')
X_test= pd.read_excel('input.xlsx')
# Use the loaded model to make predictions
final_Data= X_test
predictions = knn_from_joblib.predict(X_test)
predictions
final_Data['Predicted Yield']= predictions
final_Data.to_excel("predictions.xlsx")
When I make exe from this file and run that exe file I got the error below
when I run .py file from IDE it runs fine.