You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装sktime==0.4.1时遭遇Could not build wheels错误求助

解决sktime==0.4.1安装时wheel构建失败的问题
  • 检查并补齐编译依赖
    不同系统需安装对应的编译工具:

    • Ubuntu/Debian:执行sudo apt-get install build-essential python3-dev
    • CentOS/RHEL:执行sudo yum install gcc python3-devel
    • Windows:安装Visual Studio Build Tools,勾选「C++开发工具」组件
    • macOS:执行xcode-select --install安装Command Line Tools
  • 升级pip、setuptools和wheel工具
    旧版本工具可能不兼容包的构建配置,执行:

    python -m pip install --upgrade pip setuptools wheel
    
  • 提前安装sktime的核心依赖
    先确保依赖包正常安装,再尝试安装sktime:

    pip install numpy pandas scipy scikit-learn
    pip install sktime==0.4.1
    
  • 指定兼容的依赖版本安装
    若新版本依赖存在兼容性问题,尝试指定适配sktime 0.4.1的依赖版本:

    pip install numpy==1.21.0 pandas==1.3.0 scipy==1.7.0 scikit-learn==0.24.0
    pip install sktime==0.4.1
    
  • 改用conda安装(若有conda环境)
    conda提供预编译包,可绕过编译步骤:

    conda install -c conda-forge sktime=0.4.1
    

内容的提问来源于stack exchange,提问作者xuanhan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 21:19:53