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

PyCharm中pip安装rpaframework失败:pendulum编译wheel出错求助

解决Windows 10下安装rpaframework时pendulum编译失败的问题

问题概述

在Windows 10系统的PyCharm IDE中执行pip install rpaframework时,因pendulum包编译失败导致安装终止,报错核心为无法构建pendulum的wheel文件。

环境详情

  • Windows 10
  • Python 3.12.2
  • pip 24.0

完整报错信息

raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['C:/Program Files/Python312/python.exe', 'build.py']' returned non-zero exit status 1.
      [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pendulum
Failed to build pendulum
ERROR: Could not build wheels for pendulum, which is required to install pyproject.toml-based projects

已尝试无效的操作

  • pip install pendulum==2.0.3
  • pip install --upgrade pip setuptools wheel

可行解决方案

1. 安装C++编译环境

pendulum源码编译依赖Microsoft Visual C++编译工具,缺失会导致构建失败:

  • 下载并安装Microsoft Visual C++ Build Tools 2022,安装时勾选「Desktop development with C++」工作负载及所有核心组件
  • 安装完成后重启PyCharm或终端,重新执行pip install rpaframework

2. 强制使用预编译wheel包

跳过源码编译,直接安装预编译的pendulum包:

  • 在PyCharm的终端中执行:
    pip install pendulum --only-binary :all:
    
  • 完成后再执行pip install rpaframework

3. 降级Python版本到3.11及以下

Python 3.12对部分旧版C扩展库兼容性不足,pendulum部分版本暂未适配3.12:

  • 在PyCharm中创建Python 3.11的虚拟环境
  • 切换到该环境后执行pip install rpaframework

4. 指定rpaframework兼容版本

安装明确支持Python 3.12的rpaframework版本(以28.0.0为例,可根据官方更新调整):

pip install rpaframework==28.0.0

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.27 05:42:48