1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 运行xgboost 时出现的问题 from scipy.misc import comb ImportError: cannot import name 'comb'的

运行xgboost 时出现的问题 from scipy.misc import comb ImportError: cannot import name 'comb'的

时间:2019-01-06 15:12:46

相关推荐

运行xgboost 时出现的问题 from scipy.misc import comb ImportError: cannot import name 'comb'的

因为scipy.misc中的comb位置已经移到scipy.special中,所以,将文件中错误的import修改就会没问题了。

例如,我在import librosa时,会报错:cannot import name 'comb'

修改两处都要:

修改lib\site-packages\sklearn\model_selection\_split.py中from scipy.misc import combfrom scipy.special import comb

修改lib\site-packages\sklearn\metrics\cluster\supervised.py中from scipy.misc import combfrom scipy.special import comb

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。