Windows下Python3.12安装CausalML失败问题求助
安装causalml时Wheel构建失败(Windows 10 + Anaconda3 + Python3.12)
在Windows 10系统的Anaconda 3环境中,使用Python 3.12执行命令 pip install causalml 安装causalml,构建causalml的wheel时失败。
错误片段如下:
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for causalml Failed to build causalml ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (causalml)
关键错误信息:
causalml/inference/tree/_tree/_tree.cpp中出现错误:'use_tracing': is not a member of '_PyCFrame'- 编译器命令
cl.exe执行失败,退出码为2 - 存在NumPy API弃用警告,以及Python 2.7相关选项(
bdist_wheel.universal)弃用警告 - Setuptools提示包配置缺失(如
causalml.inference.tree等模块)
环境信息:
- Python版本:3.12
- 操作系统:Windows 10
- 编译器:Microsoft Visual Studio 2022 Build Tools(已更新至最新版本并包含C++构建工具)
- 环境:Anaconda 3
- NumPy版本:1.26.4
已尝试操作:更新Visual Studio Build Tools至最新版本,确保包含C++构建工具,但问题仍未解决。
内容的提问来源于stack exchange,提问作者Aroma
相关产品推荐
相关产品推荐

