首页  :: 新随笔  :: 管理

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

Posted on 2019-07-20 17:45  季枫  阅读(5074)  评论(0)    收藏  举报

 

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

 

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |