ImportError: cannot import name 'joblib' from 'sklearn.externals'

后端 未结 9 1368
暖寄归人
暖寄归人 2020-12-17 07:59

I am trying to load my saved model from s3 using joblib

import pandas as pd 
import numpy as np
import json
import subprocess
import sqlalchemy
from sklearn.         


        
相关标签:
9条回答
  • 2020-12-17 08:45

    you can directly import joblib instead of from sklearn.externals import joblib... its works

    0 讨论(0)
  • 2020-12-17 08:46

    You can import joblib directly by installing it as a dependency and using import joblib,

    https://joblib.readthedocs.io/en/latest/

    0 讨论(0)
  • 2020-12-17 08:50

    You can directly use

    import joblib

    instead of

    from sklearn.externals import joblib.

    I tried this out and it worked well for me

    0 讨论(0)
提交回复
热议问题