解决 cannot find reference 'LSHForest' in '__init__.py'


 

from sklearn.neighbors import LSHForest

 cannot find reference 'LSHForest' in '__init__.py'报错

pip3 list #查看sklearn版本号,我的是0.21,这个版本太高了可能改名字了或者其他原因

sudo pip3 uninstall  scikit-learn  #我之前安装的是sklearn,显示版本号是0.0也是直接卸载

sudo pip3 install scikit-learn==0.19.2  #在网站上搜发现这个版本有这个包 https://scikit-learn.org/stable/support.html#documentation-resources

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM