Joblib: ImportError: cannot import name 'joblib'

Created on 5 Jun 2020  路  3Comments  路  Source: joblib/joblib

I'm getting ImportError: cannot import name 'joblib' error while run python app. App file contain from sklearn.externals import joblib,, sklearn and joblib library already installed.

Please help me.

Most helpful comment

This code was written for an older version of scikit-learn.

Just use:

import joblib

instead in the code.

If this is a library you cannot modify your self or cannot update to a version compatible with the latest version of scikit-learn, please downgrade the version of scikit-learn to use a compatible version.

All 3 comments

This code was written for an older version of scikit-learn.

Just use:

import joblib

instead in the code.

If this is a library you cannot modify your self or cannot update to a version compatible with the latest version of scikit-learn, please downgrade the version of scikit-learn to use a compatible version.

This code was written for an older version of scikit-learn.

Just use:

import joblib

instead in the code.

If this is a library you cannot modify your self or cannot update to a version compatible with the latest version of scikit-learn, please downgrade the version of scikit-learn to use a compatible version.

This worked for me, Thanks

Change` from

sklearn.externals import joblib

to `

import joblib as jb

Was this page helpful?
0 / 5 - 0 ratings