python中关于sklearn 0.18的错误—— cannot import name comb
用sklearn时from sklearn.clusterimport KMeans
报错 cannot import name comb
解决方法:
修改lib\site-packages\sklearn\model_selection_split.py中from scipy.misc import comb为from scipy.special import comb(
修改lib\site-packages\sklearn\metrics\cluster\supervised.py中from scipy.misc import comb为from scipy.special import comb