module ‘sklearn.utils._openmp_helpers‘ has no attribute ‘__pyx_capi__‘
使用imblearn对数据重采样时,导入包的过程出现了以下错误:
module 'sklearn.utils._openmp_helpers' has no attribute '__pyx_capi__'
尝试了多种解决方法:
最后发现可能时scikit-learn版本的问题,需要更新版本
首先使用
pip install -U scikit-learn
结果没有成功。
后来看到网上一个帖子说使用conda,该帖子链接为AttributeError: module 'sklearn' has no attribute 'model_selection'导入报错解决方法_巴扎黑~的博客-CSDN博客
conda update scikit-learn
喜大普奔,可以更新了,就是速度很慢,因为要下载很多依赖包。
我等了半个多小时还没更完,就把电脑开着去睡觉了,第二天早上醒来发现更完了。
然后今天重新运行代码发现就没问题了。
module ‘sklearn.utils._openmp_helpers‘ has no attribute ‘__pyx_capi__‘相关推荐
- No module named ‘sklearn.utils.linear_assignment_‘
pip install -U scikit-learn No module named 'sklearn.utils.linear_assignment_' 新版本api换了,解决方法: from s ...
- 成功解决AttributeError: module 'torch.utils' has no attribute 'data'
成功解决AttributeError: module 'torch.utils' has no attribute 'data' 目录 解决问题 解决思路 解决方法 解决问题 AttributeErr ...
- __main__.py:AttributeError: module 'labelme.utils' has no attribute 'draw_label'
实现labelme批量json_to_dataset方法中 https://blog.csdn.net/yql_617540298/article/details/81110685#comments ...
- AttributeError: module 'labelme.utils' has no attribute 'draw_label'
实现labelme批量json_to_dataset方法中 https://blog.csdn.net/yql_617540298/article/details/81110685#comments ...
- attributeError: module ‘keras.utils‘ has no attribute ‘get_file‘
attributeError: module 'keras.utils' has no attribute 'get_file' 将代码改为: from keras.utils.data_utils ...
- AttributeError: module ‘labelme.utils‘ has no attribute ‘draw_label‘
AttributeError: module 'labelme.utils' has no attribute 'draw_label' 安装指定版本labelme pip install label ...
- sklearn 出现 cannot import name 'plot_tree' 与 module 'sklearn.tree' has no attribute 'plot_tree' 问题解决
使用 scikit-learn.tree 包中的 plot_tree 绘制决策树的问题 问题: ImportError: cannot import name 'plot_tree' 或 module ...
- yolov5 v3.0训练报错: torch.nn.modules.module.ModuleAttributeError: ‘BatchNorm2d‘ object has no attribute
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 yolov5 v3.0版本训练报错:torch.nn.modules.module.ModuleAttributeErr ...
- 解决tensorflow报错:AttributeError: module ‘tensorflow.keras.backend‘ has no attribute ‘get_session‘ 问题
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 解决tensorflow报错:AttributeError: module 'tensorflow.keras.back ...
最新文章
- # 2021华为软件精英挑战赛C/C++——build.sh/build_and_run.sh/CodeCraft_zip.sh注释
- BZOJ1001[BeiJing2006]狼抓兔子——最小割
- vue + axios---封装一个http请求
- Linux 什么时候才能足够完美?
- HTML form 标签的 accept-charset 属性
- 因子(Number_Of_Factors)
- 分布式系统之CAP理论
- ArchSummit深圳APM专场总结:性能监控与调优实践干货分享
- eclispe修改project Explorer字体大小
- [Java] java中的接口定义
- Java——链表的增删查改
- 03-es6语法 Promise 和 es8语法 async await 的了解和基本使用
- kali php服务器,在云服务器上搭建公网kali linux2.0
- 一文搞懂JVM架构:java数据结构和c语言数据结构区别
- ZJOI 2010 贪吃的老鼠 最大流
- 谷歌发布 Android 12 硬件标准:6GB内存+1080P屏幕
- 三菱plc支持c语言,5.三菱FX系列PLC支持哪种编程方式.
- HR面试问题-离职原因
- Android下载地址
- 3-6 静态数据成员与静态成员函数