title: Python: ImportError: cannot import name 'pformat' from 'joblib.logger'
body: <p>I get the following error when trying to <code>import from sklearn.linear_model import LinearRegression</code>
  ImportError: cannot import name 'pformat' from 'joblib.logger'</p>
  <p>This is the full Error Report:</p>
  <blockquote>
  <p>ImportError                               Traceback (most recent call
  last)  in 
  4 import pandas as pd
  5 import numpy as np
  ----&gt; 6 from sklearn.linear_model import LinearRegression
  7
  8 df = pd.read_csv('dataset_.csv', sep=';', delimiter=None)</p>
  <p>~\Anaconda3\lib\site-packages\sklearn_<em>init</em>_.py in 
  78     from . import _distributor_init  # noqa: F401
  79     from . import __check_build  # noqa: F401
  ---&gt; 80     from .base import clone
  81     from .utils._show_versions import show_versions
  82</p>
  <p>~\Anaconda3\lib\site-packages\sklearn\base.py in 
  19 from . import <strong>version</strong>
  20 from ._config import get_config
  ---&gt; 21 from .utils import _IS_32BIT
  22 from .utils.validation import check_X_y
  23 from .utils.validation import check_array</p>
  <p>~\Anaconda3\lib\site-packages\sklearn\utils_<em>init</em>_.py in 
  21
  22 from .murmurhash import murmurhash3_32
  ---&gt; 23 from .class_weight import compute_class_weight, compute_sample_weight
  24 from . import _joblib
  25 from ..exceptions import DataConversionWarning</p>
  <p>~\Anaconda3\lib\site-packages\sklearn\utils\class_weight.py in
  
  5 import numpy as np
  6
  ----&gt; 7 from .validation import _deprecate_positional_args
  8
  9</p>
  <p>~\Anaconda3\lib\site-packages\sklearn\utils\validation.py in 
  19
  20 from numpy.core.numeric import ComplexWarning
  ---&gt; 21 import joblib
  22
  23 from contextlib import suppress</p>
  <p>~\Anaconda3\lib\site-packages\joblib_<em>init</em>_.py in 
  111
  112 import os
  --&gt; 113 from .memory import Memory, MemorizedResult, register_store_backend
  114 from .logger import PrintTime
  115 from .logger import Logger</p>
  <p>~\Anaconda3\lib\site-packages\joblib\memory.py in 
  24 # Local imports
  25 from . import hashing
  ---&gt; 26 from .func_inspect import get_func_code, get_func_name, filter_args
  27 from .func_inspect import format_call
  28 from .func_inspect import format_signature</p>
  <p>~\Anaconda3\lib\site-packages\joblib\func_inspect.py in 
  15
  16 from ._compat import _basestring
  ---&gt; 17 from .logger import pformat
  18 from ._memory_helpers import open_py_source
  19 from ._compat import PY3_OR_LATER</p>
  <p>ImportError: cannot import name 'pformat' from 'joblib.logger'
  (....path...)</p>
  </blockquote>
  <p>How can I resolve this, so I can proceed with building my lin reg model?</p>