Jupyter: No module named 'imblearn" after inst

2020-07-08 07:26发布

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?

9条回答
家丑人穷心不美
2楼-- · 2020-07-08 07:39

Just check if you antivirus or firewall is blocking the download process. I too had the same issue. This happens when you try to install through Anaconda. During the installation process there occurs a permission error. This is probably due to antivirus blocking the download process.

查看更多
霸刀☆藐视天下
3楼-- · 2020-07-08 07:42

I am working on Jupyter notebook, this work for me:

pip install imblearn
查看更多
【Aperson】
4楼-- · 2020-07-08 07:48
conda install -c conda-forge imbalanced-learn 

It just worries down the problem

查看更多
登录 后发表回答