安装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
- Ubuntu/Debian:执行
升级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
相关产品推荐
相关产品推荐

