I'm a new to Python, and I have a trouble in import library.
I wrote a code
from sklearn.linear_model import LogisticRegression
then I got an error
ImportError Traceback (most recent call last)
<ipython-input-19-c84b03903d9e> in <module>()
----> 1 from sklearn.linear_model import LogisticRegression
/usr/lib/python2.7/dist-packages/sklearn/linear_model/__init__.py in <module>()
10 # complete documentation.
11
---> 12 from .base import LinearRegression
13
14 from .bayes import BayesianRidge, ARDRegression
/usr/lib/python2.7/dist-packages/sklearn/linear_model/base.py in <module>()
22
23 from ..externals import six
---> 24 from ..externals.joblib import Parallel, delayed
25 from ..base import BaseEstimator, ClassifierMixin, RegressorMixin
26 from ..utils import as_float_array, atleast2d_or_csr, safe_asarray
/usr/lib/python2.7/dist-packages/sklearn/externals/joblib/__init__.py in <module>()
1 # yoh: use system-wide joblib
2
----> 3 from joblib import *
ImportError: No module named joblib
in IPython. I'm using ubuntu and I installed scikit_learn-0.18 by using "sudo apt-get install python-sklearn" command but encountered above error. I also tried to use "sudo easy_install joblib" but the error was not erased.
What is wrong? Would you help me? Thank you.
pip install joblib?