使用正确的包名安装: 由于sklearn 已经被弃用,你应该使用 scikit-learn 这个新的包名来安装。你可以在命令行中输入以下命令来安装: bash pip install scikit-learn 检查Python和pip版本: 确保你的Python和pip版本是最新的,或者至少是兼容scikit-learn的。你可以通过以下命令来检查你的Python和pip
pip install sklearn Complete output from command d:\programs\python\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\YMXD\AppData\Local\Temp\pip-build-env-9v8udln2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simp...
从报错信息的关键词(“Read timed out.”) 来看,是网络的问题。换一下pip 的源。请看 升级pip,...
网络原因,可以尝试换个源下载
个人以为是threadpoolctl包的问题。 实际上经过查找是网络不好,也就是源出了问题,我的源是 https://pypi.mirrors.ustc.edu.cn/simple/ 解决办法:pip install sklearn -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
...现在选择sklearn这个包做演示:输入pip install sklearn 可以看到最终结论是成功安装。...4.如果想要卸载这个包也很简单,输入pip uninstall sklearn 注意,运行到出现图中倒数第二行时会需要你输入y或n。如果确定卸载,就输入y,回车即可。结果显示成功卸载。
...现在选择sklearn这个包做演示:输入pip install sklearn 可以看到最终结论是成功安装。...4.如果想要卸载这个包也很简单,输入pip uninstall sklearn 注意,运行到出现图中倒数第二行时会需要你输入y或n。如果确定卸载,就输入y,回车即可。结果显示成功卸载。
warning phase (since the problem is super easy to fix and to be honest I suspect very few people are doingpip install sklearn). We should not remove the package it is there for a good reason: people might still dopip install sklearnand/or it could be squatted by not so benevolent ...
The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' for pip commands. Here is how to fix this error in the main use cases: - use 'pip install scikit-learn' rather than 'pip install sklearn' - replace 'sklearn' by 'scikit-learn' in your pip requireme...