gtomer
gtomer

Reputation: 6574

Error when trying to install imblearn package

After:

pip install imblearn

I get:

ERROR: Could not find a version that satisfies the requirements imblearn (from version: none).

Any ideas on how to fix this?

Upvotes: 1

Views: 1455

Answers (2)

Karsen
Karsen

Reputation: 1

Occasionally, when installing packages, an older version may be installed unexpectedly. For instance, when I ran pip install imbalanced-learn, it installed version 0.10.0 instead of the latest 0.12.3. Consequently, I had to downgrade my scikit-learn version to 1.2.2, which then caused issues with scikeras. To resolve this, I specifically installed imbalanced-learn version 0.12.3. It’s essential to be cautious of the installed package versions. 🧐

Upvotes: 0

TC Arlen
TC Arlen

Reputation: 1482

They switched to using imbalanced-learn. See their old PyPi page.

So you'll want to use:

pip install imbalanced-learn

Or

conda install -c conda-forge imbalanced-learn

Upvotes: 1

Related Questions