pip3 install ...
でもダメでしょうか? 私が手元で実施したログは下記のとおりとなりました。
console
1 $ sudo -H pip3 install imbalanced-learn
2 Collecting imbalanced-learn
3 Downloading https://files.pythonhosted.org/packages/e6/62/08c14224a7e242df2cef7b312d2ef821c3931ec9b015ff93bb52ec8a10a3/imbalanced_learn-0.5.0-py3-none-any.whl (173kB)
4 |████████████████████████████████| 174kB 5.0MB/s
5 Requirement already satisfied: numpy>=1.11 in /usr/local/lib/python3.6/dist-packages (from imbalanced-learn) (1.17.3)
6 Collecting joblib>=0.11
7 Downloading https://files.pythonhosted.org/packages/8f/42/155696f85f344c066e17af287359c9786b436b1bf86029bb3411283274f3/joblib-0.14.0-py2.py3-none-any.whl (294kB)
8 |████████████████████████████████| 296kB 51.1MB/s
9 Collecting scikit-learn>=0.21
10 Downloading https://files.pythonhosted.org/packages/a0/c5/d2238762d780dde84a20b8c761f563fe882b88c5a5fb03c056547c442a19/scikit_learn-0.21.3-cp36-cp36m-manylinux1_x86_64.whl (6.7MB)
11 |████████████████████████████████| 6.7MB 35.8MB/s
12 Requirement already satisfied: scipy>=0.17 in /usr/lib/python3/dist-packages (from imbalanced-learn) (0.19.1)
13 Installing collected packages: joblib, scikit-learn, imbalanced-learn
14 Successfully installed imbalanced-learn-0.5.0 joblib-0.14.0 scikit-learn-0.21.3
15
16 $ python3
17 Python 3.6.8 (default, Oct 7 2019, 12:59:55)
18 [GCC 8.3.0] on linux
19 Type "help", "copyright", "credits" or "license" for more information.
20 >>> from imblearn.under_sampling import RandomUnderSampler
21 >>>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。