The ‘sklearn‘ PyPI package is deprecated, use ‘scikit-learn‘ rather than ‘sklearn‘ far pip commands.

一、问题:

输入安装包

pip install sklearn  -i https://pypi.tuna.tsinghua.edu.cn/simple/

遇见爆出错误

The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' far pip commands.

二、解决方法:

输入代码调整成如下即可

pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple/

三、整体操作如图:

The ‘sklearn‘ PyPI package is deprecated, use ‘scikit-learn‘ rather than ‘sklearn‘ far pip commands._第1张图片

你可能感兴趣的:(sklearn,scikit-learn,pip)