- 博客(2)
- 收藏
- 关注
原创 2022.4.21 python中关于sklearn 0.18的错误—— cannot import name comb
今天在解决Logistic Regression模型问题时想要导入from sklearn.linear_model import LogisticRegression逻辑回归算法时报错:ImportError: cannot import name 'comb'原因为“scipy.misc中的comb位置已经移到scipy.special中,需要按照以下方式找到目标文件进行修改:(推荐安装Anaconda,库的安装导入错误会大大减少)修改lib\site-packages\sklearn\mo
2022-04-21 19:07:26 1882
原创 2022.4.2使用pandas打开excel时报错
ImportError: Pandas requires version '1.1.0' or newer of 'xlrd' (version '1.0.0' currently installed).即xlrd的版本有点低,需要更新。使用以下命令:pip install --upgrade xlrd使用该命令后仍然报错:XLRDError: Excel xlsx file; not supported原因是最近xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.r
2022-04-02 19:32:16 4485
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人