Get Error while import the module
See original GitHub issueDescription
I get this error after importing the module
/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp
Can I ignore it? How to solve it?
Steps/Code to Reproduce
import sklearn
Expected Results
NO ISSUE
Actual Results
/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp
Versions
PLATFORM=Linux-4.15.0-34-generic-x86_64-with-Ubuntu-18.04-bionic PYTHON=Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] NUMPY=NumPy 1.15.2 SCIPY= SciPy 1.1.0 SKLEARN=Scikit-Learn 0.20rc1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:24 (6 by maintainers)
Top GitHub Comments
I face the same issue. Just try to install cloudpickle library. It works for me.
pip install cloudpickle
Seems like updating sklearn to 0.20.1 solves the issue!