无法安装不平衡学习

时间:2018-10-17 20:21:42

标签: python python-3.x

我正在尝试使用以下命令imbalanced-learn在Python3中安装pip install - U imbalanced-learn软件包。我收到此错误:

     Could not find a version that satisfies the requirement imbalanced-learn (from versions: )
No matching distribution found for imbalanced-learn
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

但是,当我尝试使用python -m pip install --upgrade pip进行升级时,我得到了:

Requirement already up-to-date: pip in c:\programdata\anaconda3\lib\site-packages (10.0.1)
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

谁能告诉我发生了什么事?

2 个答案:

答案 0 :(得分:1)

我也一直在努力安装它,但是它对我有用:

conda install imbalanced-learn

答案 1 :(得分:0)

尝试使用pip install imbalanced-learn在conda环境中进行pip安装。如果这不起作用,那么我建议您使用conda install -c glemaitre imbalanced-learn

恢复到v0.3