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

出现这个证明安装成功

相关推荐
dlraba80211 分钟前
用 Python+OpenCV 实现实时文档扫描:从摄像头捕捉到透视矫正全流程
开发语言·python·opencv
小熊出擊16 分钟前
【pytest】fixture 内省(Introspection)测试上下文
python·单元测试·pytest
njsgcs36 分钟前
sse mcp flask 开放mcp服务到内网
后端·python·flask·sse·mcp
一人の梅雨1 小时前
1688 店铺商品全量采集与智能分析:从接口调用到供应链数据挖掘
开发语言·python·php
Terio_my1 小时前
Python制作12306查票工具:从零构建铁路购票信息查询系统
开发语言·python·microsoft
万粉变现经纪人2 小时前
如何解决 pip install -r requirements.txt 约束文件 constraints.txt 仅允许固定版本(未锁定报错)问题
开发语言·python·r语言·django·beautifulsoup·pandas·pip
站大爷IP2 小时前
Python定时任务实战:APScheduler从入门到精通
python
Fairy_sevenseven2 小时前
[1]python爬虫入门,爬取豆瓣电影top250实践
开发语言·爬虫·python
ThisIsMirror2 小时前
CompletableFuture并行任务超时处理模板
java·windows·python
java1234_小锋3 小时前
TensorFlow2 Python深度学习 - TensorFlow2框架入门 - 计算图和 tf.function 简介
python·深度学习·tensorflow·tensorflow2