[Python] error: command '/usr/bin/g++' failed with exit code 1

Discussão em 'Python' iniciado por Stack, Dezembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    I have the error "error: command '/usr/bin/g++' failed with exit code 1" when trying to install python package QuTip via Juyter notebook:

    [​IMG]

    and below "error: command '/usr/bin/g++' failed with exit code 1"

    [​IMG]

    What fixes can be tried for such error?

    = = = =

    EDIT: From "g++ --version" I got: Apple clang version 16.0.0 (clang-1600.0.26.4) Target: x86_64-apple-darwin24.1.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin"

    = = = =

    EDIT 2: Error message from Terminal

    qutip/core/data/matmul.cpp:806:10: fatal error: 'algorithm' file not found 806 | #include | ^~~~~~~~~~~ 1 error generated. error: command '/usr/bin/g++' failed with exit code 1 [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for qutip Failed to build qutip ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (qutip)

    Continue reading...

Compartilhe esta Página