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

出现这个证明安装成功

相关推荐
吴佳浩1 天前
Python入门指南(六) - 搭建你的第一个YOLO检测API
人工智能·后端·python
superman超哥1 天前
仓颉语言中基本数据类型的深度剖析与工程实践
c语言·开发语言·python·算法·仓颉
Learner__Q1 天前
每天五分钟:滑动窗口-LeetCode高频题解析_day3
python·算法·leetcode
————A1 天前
强化学习----->轨迹、回报、折扣因子和回合
人工智能·python
徐先生 @_@|||1 天前
(Wheel 格式) Python 的标准分发格式的生成规则规范
开发语言·python
Mqh1807621 天前
day45 简单CNN
python
学习者0071 天前
python 下载离线库方法
python
声声codeGrandMaster1 天前
AI之模型提升
人工智能·pytorch·python·算法·ai
魔镜前的帅比1 天前
多 Agent 架构:Coordinator + Worker 模式
python·ai
路长冬1 天前
python基本语法
python