使用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__‘相关推荐

  1. No module named ‘sklearn.utils.linear_assignment_‘

    pip install -U scikit-learn No module named 'sklearn.utils.linear_assignment_' 新版本api换了,解决方法: from s ...

  2. 成功解决AttributeError: module 'torch.utils' has no attribute 'data'

    成功解决AttributeError: module 'torch.utils' has no attribute 'data' 目录 解决问题 解决思路 解决方法 解决问题 AttributeErr ...

  3. __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 ...

  4. AttributeError: module 'labelme.utils' has no attribute 'draw_label'

    实现labelme批量json_to_dataset方法中 https://blog.csdn.net/yql_617540298/article/details/81110685#comments ...

  5. attributeError: module ‘keras.utils‘ has no attribute ‘get_file‘

    attributeError: module 'keras.utils' has no attribute 'get_file' 将代码改为: from keras.utils.data_utils ...

  6. AttributeError: module ‘labelme.utils‘ has no attribute ‘draw_label‘

    AttributeError: module 'labelme.utils' has no attribute 'draw_label' 安装指定版本labelme pip install label ...

  7. 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 ...

  8. yolov5 v3.0训练报错: torch.nn.modules.module.ModuleAttributeError: ‘BatchNorm2d‘ object has no attribute

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 yolov5 v3.0版本训练报错:torch.nn.modules.module.ModuleAttributeErr ...

  9. 解决tensorflow报错:AttributeError: module ‘tensorflow.keras.backend‘ has no attribute ‘get_session‘ 问题

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 解决tensorflow报错:AttributeError: module 'tensorflow.keras.back ...

最新文章

  1. # 2021华为软件精英挑战赛C/C++——build.sh/build_and_run.sh/CodeCraft_zip.sh注释
  2. BZOJ1001[BeiJing2006]狼抓兔子——最小割
  3. vue + axios---封装一个http请求
  4. Linux 什么时候才能足够完美?
  5. HTML form 标签的 accept-charset 属性
  6. 因子(Number_Of_Factors)
  7. 分布式系统之CAP理论
  8. ArchSummit深圳APM专场总结:性能监控与调优实践干货分享
  9. eclispe修改project Explorer字体大小
  10. [Java] java中的接口定义
  11. Java——链表的增删查改
  12. 03-es6语法 Promise 和 es8语法 async await 的了解和基本使用
  13. kali php服务器,在云服务器上搭建公网kali linux2.0
  14. 一文搞懂JVM架构:java数据结构和c语言数据结构区别
  15. ZJOI 2010 贪吃的老鼠 最大流
  16. 谷歌发布 Android 12 硬件标准:6GB内存+1080P屏幕
  17. 三菱plc支持c语言,5.三菱FX系列PLC支持哪种编程方式.
  18. HR面试问题-离职原因
  19. Android下载地址
  20. 3-6 静态数据成员与静态成员函数

热门文章

  1. FPGA 控制 nand flash读写
  2. lerna管理多项目
  3. Python通过word模板生成新的word文件
  4. SUSCTF 2nd Dk Wrtie Up
  5. 桌面文件不见了怎么恢复
  6. 该不该从大学退学的讨论
  7. 笔记本电脑电池的保养和优化
  8. TSP问题-多种算法求解
  9. 螃蟹WiFi驱动中的Band Steering功能
  10. 美团综合业务推荐系统的质量模型与实践