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

出现这个证明安装成功

相关推荐
dme.几秒前
Javascript之DOM操作
开发语言·javascript·爬虫·python·ecmascript
加油吧zkf10 分钟前
AI大模型如何重塑软件开发流程?——结合目标检测的深度实践与代码示例
开发语言·图像处理·人工智能·python·yolo
t_hj11 分钟前
python规划
python
czhc114007566327 分钟前
Linux 76 rsync
linux·运维·python
悠悠小茉莉1 小时前
Win11 安装 Visual Studio(保姆教程 - 更新至2025.07)
c++·ide·vscode·python·visualstudio·visual studio
m0_625686551 小时前
day53
python
Real_man2 小时前
告别 requirements.txt,拥抱 pyproject.toml和uv的现代Python工作流
python
站大爷IP2 小时前
Python文件操作的"保险箱":with语句深度实战指南
python
运器1232 小时前
【一起来学AI大模型】算法核心:数组/哈希表/树/排序/动态规划(LeetCode精练)
开发语言·人工智能·python·算法·ai·散列表·ai编程
巴里巴气5 小时前
selenium基础知识 和 模拟登录selenium版本
爬虫·python·selenium·爬虫模拟登录