facing ImportError: No module named discriminant_analysis
<p>I am using <code>Ubuntu 14.04 , python=2.7 , numpy=1.10.1 , scikit-learn=0.17.1 , scipy=0.17.1</code> but I have Import Error both in <code>IDLE</code> and in <code>Spyder</code> (conda=4.1.3 , conda-env=2.5.0a0) in the import part of the code:</p>

<pre><code>import numpy as np
from sklearn.cross_validation import train_test_split
import csv
import pandas
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from sklearn.tree import DecisionTreeClassifier 
from bs4 import BeautifulSoup   
import re
from sklearn.multiclass import OneVsRestClassifier
from sklearn.linear_model import SGDClassifier
from sklearn import neighbors
from sklearn.ensemble import RandomForestClassifier
from sklearn import metrics
from sklearn.svm import SVC
from sklearn.naive_bayes import GaussianNB
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis
from sklearn.metrics import accuracy_score
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier
</code></pre>

<p>I am facing the error as:</p>

<blockquote>
  <p>ImportError: No module named discriminant_analysis</p>
</blockquote>

<p>However in terminal(Python) I have tried to import: <strong>LinearDiscriminantAnalysis</strong> as follow:</p>

<pre><code> from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
</code></pre>

<p>there was not any error?! I don't know what is the reason and how can I fix it?</p>