Changing line 23 from: from sklearn.externals import joblib to: import joblib Seems to fix it, assuming joblib is already installed