Jupyter:没有名为“imblearn"的模块;安装后 [英] Jupyter: No module named 'imblearn" after installation

查看:161
本文介绍了Jupyter:没有名为“imblearn"的模块;安装后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ANACONDA Navigator 上安装了不平衡学习"(0.3.1 版).当我使用 Jupyter (Python 3) 从不平衡学习网站运行一个示例时,我收到一条关于ModuleNotFoundError"的消息.没有名为imblearn"的模块.

I installed "imbalanced-learn" (version 0.3.1) on ANACONDA Navigator. When I ran an example from the imbalanced-learn website using Jupyter (Python 3), I got an message regarding "ModuleNotFoundError". No module named 'imblearn".

from imblearn.datasets import make_imbalance
from imblearn.under_sampling import NearMiss
from imblearn.pipeline import make_pipeline
from imblearn.metrics import classification_report_imbalanced

我该如何解决这个问题?

How could I resolve this?

推荐答案

在 ipython notebook 上导入 imblearn python 包的问题

在这里找到答案.这对我有用

Found the answer here. This worked for me

conda install -c glemaitre imbalanced-learn

这篇关于Jupyter:没有名为“imblearn"的模块;安装后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆