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

出现这个证明安装成功

相关推荐
Jackson@ML1 小时前
如何快速高效学习Python?
开发语言·python
UFIT2 小时前
Python函数与模块笔记
开发语言·python
言之。2 小时前
别学了,打会王者吧
java·python·mysql·容器·spark·php·html5
YiSLWLL3 小时前
使用Tauri 2.3.1+Leptos 0.7.8开发桌面小程序汇总
python·rust·sqlite·matplotlib·visual studio code
花酒锄作田3 小时前
[flask]自定义请求日志
python·flask
SsummerC5 小时前
【leetcode100】组合总和Ⅳ
数据结构·python·算法·leetcode·动态规划
Tandy12356_5 小时前
Godot开发2D冒险游戏——第一节:主角登场!
python·游戏引擎·godot
西柚小萌新6 小时前
【Python爬虫基础篇】--4.Selenium入门详细教程
爬虫·python·selenium
橘猫云计算机设计7 小时前
springboot基于hadoop的酷狗音乐爬虫大数据分析可视化系统(源码+lw+部署文档+讲解),源码可白嫖!
数据库·hadoop·spring boot·爬虫·python·数据分析·毕业设计
YOULANSHENGMENG7 小时前
linux 下python 调用c++的动态库的方法
c++·python