title: Python: ImportError: cannot import name 'bincount'
body: <p>When i import an algorithm from sklearn library, i am getting an error message as - ImportError: Cannot import name 'bincount'. I never faced this error and could not find an equivalent answer here. Please help</p>
  
  <pre><code>import sklearn
  sklearn.__version__
  
  Out[1]:
  
  '0.19.1'
  
  
  from sklearn.ensemble import RandomForestClassifier
  </code></pre>
  
  <p><strong>Output of Error</strong></p>
  
  <pre><code>---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-4-4a3086242da3&gt; in &lt;module&gt;()
        3 import matplotlib.pyplot as plt
        4 get_ipython().magic('matplotlib inline')
  ----&gt; 5 from sklearn.ensemble import RandomForestClassifier
  
  C:\Users\30295\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\ensemble\__init__.py in &lt;module&gt;()
        5 
        6 from .base import BaseEnsemble
  ----&gt; 7 from .forest import RandomForestClassifier
        8 from .forest import RandomForestRegressor
        9 from .forest import RandomTreesEmbedding
  
  C:\Users\30295\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\ensemble\forest.py in &lt;module&gt;()
       55 from ..externals.joblib import Parallel, delayed
       56 from ..externals import six
  ---&gt; 57 from ..metrics import r2_score
       58 from ..preprocessing import OneHotEncoder
       59 from ..tree import (DecisionTreeClassifier, DecisionTreeRegressor,
  
  C:\Users\30295\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\metrics\__init__.py in &lt;module&gt;()
        5 
        6 
  ----&gt; 7 from .ranking import auc
        8 from .ranking import average_precision_score
        9 from .ranking import coverage_error
  C:\Users\30295\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\metrics\ranking.py in &lt;module&gt;()
       30 from ..utils.multiclass import type_of_target
       31 from ..utils.extmath import stable_cumsum
  ---&gt; 32 from ..utils.sparsefuncs import count_nonzero
       33 from ..exceptions import UndefinedMetricWarning
       34 from ..preprocessing import LabelBinarizer
  
  C:\Users\30295\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\utils\sparsefuncs.py in &lt;module&gt;()
        7 import numpy as np
        8 
  ----&gt; 9 from .fixes import sparse_min_max, bincount
       10 from .sparsefuncs_fast import (
       11     csr_mean_variance_axis0 as _csr_mean_var_axis0,
  
  ImportError: cannot import name 'bincount'
  </code></pre>