Trying to unpickle estimator LinearRegression from version 0.23.2 when using version 1.1.2.

一、背景说明

运行 Python 工程,报错信息如下:

Trying to unpickle estimator LinearRegression from version 0.23.2 when using version 1.1.2.

从报错信息上看,是由于 scikit-learn 的版本太高,导致不支持,需要将版本降到 0.32.2


二、解决方案

安装 0.32.2 版本的 scikit-learn,安装命令如下:

pip install scikit-learn==0.23.2

或者

pip install scikit-learn==0.23.2 -i https://pypi.tuna.tsinghua.edu.cn/simple 

推荐指定清华源,下载相对快些!


PS

个人使用的 Python 版本是 3.8.5,小伙伴们要先保证版本号一致哈~
在这里插入图片描述


  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Unity 5 From Zero to Proficiency (Intermediate): A step-by-step guide to coding your first game in C# with Unity. Why this book can help you to get started with Game Development Creating your own game can be very intimidating at the start, and quite often, regardless of your experience with games, it is sometimes difficult to find the time and motivation to get over the first barriers and to get started. Often, these barriers seem higher than they actually are. Maybe you are a teacher trying to introduce games in your classroom or a parent trying to help your child with coding, but with no previous coding or game development experience; maybe you are a hobbyist who would love to create interactive environments based on your favorite games; maybe you are a student getting started with game development but you just don't know where to start or what resources to use; or maybe you have tried online video tutorials but found them disjointed. You may be wondering: "How can I start to create my games if I have no experience of coding", or "this game engine is so complex that I just don't know where to get started". This is quite common, and you can easily overcome these issues with a step-by-step approach that gets you to progressively develop and use your skills. This is the approach that I have used successfully over the past years to take students from no knowledge of coding or game development to good levels of proficiency in Unity and coding. Of course, it takes some time and dedication; however, by following the techniques and suggestions described in this book, I can promise you that you will progress, regardless of your background, and become more comfortable with Unity and coding. Content and structure of this book In this book, the third book in the series, you will become comfortable with programming in C# by creating a simple survival game in Unity. The book includes: A list of the learning objectives at the start of each chapter. Step-by-step activitie

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值