[英]Could not find version error during install Imblearn in python
我正在嘗試安裝Imblearn以在python中執行SMOTE。 我一直在嘗試安裝imblearn軟件包。 但是我不斷出錯。 以下是我嘗試過的命令,
pip install imblearn
pip install git+https://github.com/fmfn/UnbalancedDataset
以下是我遇到的錯誤,
Collecting imblearn
Using cached https://files.pythonhosted.org/packages/81/a7/4179e6ebfd654bd0eac0b9c06125b8b4c96a9d0a8ff9e9507eb2a26d2d7e/imblearn-0.0-py2.py3-none-any.whl
Collecting imbalanced-learn (from imblearn)
Using cached https://files.pythonhosted.org/packages/e0/87/39a4cecebc7fb9ddb433fe8bc7f76379b4918a0ade91f8a1423dc25c7ddc/imbalanced-learn-0.5.0.tar.gz
Requirement already satisfied: numpy>=1.11 in
Requirement already satisfied: scipy>=0.17 in
Collecting scikit-learn>=0.21 (from imbalanced-learn->imblearn)
ERROR: Could not find a version that satisfies the requirement scikit-learn>=0.21 (from imbalanced-learn->imblearn) (from versions: 0.9, 0.10, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.14, 0.14.1, 0.15.0b1, 0.15.0b2, 0.15.0, 0.15.1, 0.15.2, 0.16b1, 0.16.0, 0.16.1, 0.17b1, 0.17, 0.17.1, 0.18rc2, 0.18, 0.18.1, 0.18.2, 0.19b2, 0.19.0, 0.19.1, 0.19.2, 0.20rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.21rc2)
ERROR: No matching distribution found for scikit-learn>=0.21 (from imbalanced-learn->imblearn)
因此,由於數據嚴重失衡,我無法繼續進行建模。 有人可以幫我安裝此軟件包嗎? 如果沒有,在python中執行SMOTE的替代方法是什么?
Scikit-learn 0.20是最后一個支持Python2.7的版本。 Scikit學習0.21和更高版本需要Python 3.5或更高版本。
請參考以下鏈接:
我建議使用Python3
pip install命令已更改。 如下
https://pypi.org/project/scikit-learn/0.21.0/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.