ImportError: cannot import name 'RandomizedLogisticRegression' from 'sklearn.linear_model' (D:\Users\urse\Anaconda3\lib\site-packages\sklearn\linear_model\__init__.py)

这个RandomizedLogisticRegression在scikit-learn版本0.19.2 

【Python】报错: cannot import name ‘RandomizedLogisticRegression‘ from ‘sklearn.linear_model‘ 问题解决

尝试网上安装新版本的方法,都没有成功

后来,最简单的办法就是直接用安装这个版本的scikit-learn 就好了

pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com scikit-learn==0.19.2

注意,最好新建一个虚拟环境,做好区分,不然后面可能还是会报错 

相关文章:

  • 2022-12-23
  • 2021-10-28
  • 2021-06-26
  • 2021-04-13
  • 2021-12-25
  • 2022-01-03
  • 2022-12-23
  • 2021-10-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-09-16
  • 2021-05-07
  • 2022-12-23
  • 2021-09-06
相关资源
相似解决方案