pip 安装 scikit-learn

第一步:更新pip

可以首先执行 python -m ensurepip 然后执行 python -m pip install --upgrade pip 即可更新完毕。

bash 复制代码
python -m ensurepip
python -m pip install --upgrade pip

第二步 安装sklearn的时候一定要注意顺序。

安装顺序:numpy / scipy / matplotlib / scikit-learn

bash 复制代码
pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ numpy

pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ scipy 

pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ matplotlib 

pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ scikit-learn

出现这个证明安装成功

相关推荐
Warson_L10 分钟前
Python `Annotated` 与 LangGraph Reducer 学习笔记
python
韩师傅12 分钟前
海天线算法的前世今生
python·计算机视觉
韩师傅16 分钟前
当你的甲方设备过烂,要如何快速出效果?
python·计算机视觉
Warson_L19 分钟前
LangGraph的MessageState and HumanMessage
python
韩师傅1 小时前
当你的甲方吐槽天空不够蓝,你应该如何应对
python·计算机视觉
Warson_L1 小时前
python的类&继承
python
Warson_L1 小时前
类型标注/type annotation
python
ThreeS4 小时前
手搓MiniVLA全实战教程-一步一步用pytorch解释原理与思路
人工智能·python
金銀銅鐵5 小时前
[Python] 模 n 乘法的逆元计算器
python·数学·游戏