title: 'Some libraries imported but unused' warning in Spyder with scikit-learn
body: <p>I get an error about scikit-learn and others, &quot;Some libraries imported but unused&quot;, when I want to run my code.</p>
  <pre><code>conda version : 4.6.14
  python version : 3.7.3.final.0
  </code></pre>
  <p>Error output:</p>
  <blockquote>
  <p>math imported but unused</p>
  <p>sklearn.metrics..... imported but unused</p>
  <p>random imported but unused</p>
  </blockquote>
  <p>Same warning all below up this libraries.</p>
  <pre><code>import random
  import numpy as np
  import math
  import matplotlib.pyplot as plt
  from sklearn.preprocessing import StandardScaler
  from sklearn.cross_validation import train_test_split
  from sklearn.svm import SVC
  from sklearn.model_selection import LeaveOneOut
  from sklearn.model_selection import LeaveOneGroupOut
  from sklearn.metrics import accuracy_score
  from sklearn.metrics import f1_score
  from sklearn.metrics import confusion_matrix
  </code></pre>