当前位置: 首页 > news >正文

pycharm集成环境中关于安装sklearn库报错问题分析及解决

在输入pip install sklearn后,出现如下提示:

pip install sklearn

Collecting sklearn Using cached sklearn-0.0.post12.tar.gz (2.6 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully.

│ exit code: 1 ╰─> [15 lines of output] The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' for pip commands. Here is how to fix this error in the main use cases: - use 'pip install scikit-learn' rather than 'pip install sklearn' - replace 'sklearn' by 'scikit-learn' in your pip requirements files (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...) - if the 'sklearn' package is used by one of your dependencies, it would be great if you take some time to track which package uses 'sklearn' instead of 'scikit-learn' and report it to their issue tracker - as a last resort, set the environment variable SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error More information is available at https://github.com/scikit-learn/sklearn-pypi-package [end of output]

在翻译原文后,得出:

收集 sklearn
正在使用缓存的 sklearn-0.0.post12.tar.gz (2.6 kB)
正在安装构建依赖项... 完成
获取构建轮子的需求... 出错
错误:子进程退出并出现错误

× 获取构建轮子的需求未成功运行。
│ 退出代码:1
╰─> [15 行输出]
PyPI 上的 'sklearn' 包已被弃用,请使用 'scikit-learn'
而不是 'sklearn' 来执行 pip 命令。

便使用如下代码继续尝试:

pip install scikit-learn

结束!!!

http://www.lryc.cn/news/499832.html

相关文章:

  • AI - 浅聊一下基于LangChain的AI Agent
  • 《【Linux】深入理解进程管理与 fork 系统调用的实现原理》
  • docker-compose部署skywalking 8.1.0
  • AI 总结的的 AI 学习路线
  • 离散傅里叶级数(DFS)详解
  • Java 类加载机制详解
  • 1.1 Beginner Level学习之“编写简单的发布服务器和订阅服务器”(第十一节)
  • AIQuora:开启论文写作新篇章
  • 【C语言】库函数常见的陷阱与缺陷(1):字符串处理函数
  • Mysql索引原理及优化——岁月云实战笔记
  • AGCRN论文解读
  • Python机器学习笔记(五、决策树集成)
  • Kafka单机及集群部署及基础命令
  • 如何使用 Python 实现链表的反转?
  • react跳转传参的方法
  • Scala:正则表达式
  • 【数电】常见时序逻辑电路设计和分析
  • Spring IOCAOP
  • Scala中的隐式转换
  • GESP 2024年12月认证 真题 及答案
  • C++多态性
  • PyODBC: Python 与数据库连接的桥梁
  • 专题二十五_动态规划_两个数组的 dp (含字符串数组)_算法专题详细总结
  • PHP语法学习(第七天)-循环语句,魔术常量
  • 数据库授权讲解一下
  • 组件开发的环境准备: nodejs安装,npm镜像源的修改,pnpm包管理器的安装(全局安装),基于pnpm创建脚手架项目
  • 学生成绩统计系统
  • 【Spring项目】图书管理系统
  • Vivado ILA数据导出MATLAB分析
  • 【开源免费】基于SpringBoot+Vue.JS高校学科竞赛平台(JAVA毕业设计)