1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Trouble installing CausalML (pip install causalml)

Discussão em 'Python' iniciado por Stack, Setembro 28, 2024 às 08:22.

  1. Stack

    Stack Membro Participativo

    I'm trying to install causalml on my Windows machine using Python 3.12 with the command: pip install causalml. But the installation fails when trying to build a wheel for causalml. Here's a snippet of the error:

    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)


    I've attached on pastebin the error: https://pastebin.com/dehRfgrk

    But they key error messages are:

    use_tracing': is not a member of '_PyCFrame' in causalml/inference/tree/_tree/_tree.cpp.
    The command "cl.exe" fails with exit code 2.
    Warning regarding deprecated NumPy API and usage of Python 2.7 options (bdist_wheel.universal is deprecated).
    Setuptools warnings about missing packages in the packages configuration (causalml.inference.tree, etc.)


    I'm using: Python version: 3.12.
    OS: Windows 10.
    Compiler: Microsoft Visual Studio 2022 Build Tools.
    Environment: Anaconda 3.
    NumPy version: 1.26.4.

    I tried updating visual studio build tools and installed the latest version and ensured C++ build tools were included. I'm not sure if I did it correctly however, but I thought this would have helped.

    I would be grateful for your help and insights.

    Continue reading...

Compartilhe esta Página