title: No module named “” error when loading the pickle file
body: <p>I created a model and I saved it in a pickle file using the Algorithm SVR(Support Vector Regression)</p>
  
  <pre><code>import pickle
  pickle.dump(model,open('carb patients data/Pickles/svr.pickle', 'wb'))
  </code></pre>
  
  <p>In jupyter notebook it gives an error</p>
  
  <blockquote>
    <p>can't pickle _thread.RLock objects</p>
  </blockquote>
  
  <p>So I converted that jupyter file in to a .py file and downloaded it and executed using the Python Idle. Then it got saved in that particular location. But when I try to load my pickle file from another Jupyter Notebook it gives an error called,</p>
  
  <blockquote>
    <p>No module named 'sklearn.svm._classes'</p>
  </blockquote>
  
  <p>The code how i tried to load the pickle file,</p>
  
  <pre><code>from flask import Flask, request, redirect, url_for, flash, jsonify
  import numpy as np
  import pickle as p
  import json
  from sklearn import ensemble
  app = Flask(__name__)
  
  
  @app.route('/api/', methods=['POST'])
  def makecalc():
    data = request.get_json()
    prediction = np.array2string(model.predict(data))
  
    return jsonify(prediction)
  
  if __name__ == '__main__':
     modelfile = 'Clustering Patients/carb patients data/Pickles/svr.pickle'
     model = p.load(open(modelfile, 'rb'))
     app.run(debug=True, host='0.0.0.0')
  </code></pre>
  
  <p>Any thing I have done wrong or is it an issue in the Jupyter Notebook? How can I load my saved pickle file?</p>