Chuck
Chuck

Reputation: 21

trouble with imports from sklearn

I have sklearn installed and I can import sklearn I can also import comb. I import numpy, import scipy. But when I try:

from sklearn.model_selection import cross_validation

or

from sklearn import svm 

I get a traceback:

File "...\Anaconda3\lib\site-packages\sklearn\model_selection\_split.py", line 25, in <module>
    from scipy.misc import comb
ImportError: cannot import name 'comb'

Upvotes: 1

Views: 356

Answers (1)

Ayush Agnihotri
Ayush Agnihotri

Reputation: 33

Something may have gone wrong in your scipy installation. The issue can be solved by uninstalling and reinstalling the 2 libraries (scipy and sklearn).

Refer to this link

Upvotes: 1

Related Questions