Skip to content

Installation error with 'C++17 or later compatible compiler is required' #149

@ZHANGWENTAI

Description

@ZHANGWENTAI

Describe the bug
report bug while installing marius by pip3 install .

To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/marius-team/marius.git
cd marius
pip3 install .
report the bug:

/tmp/pip-build-env-w3j3rbae/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: error: #error C++17 or later compatible compiler is required to use PyTorch.
          4 | #error C++17 or later compatible compiler is required to use PyTorch.
            |  ^~~~~
...

/tmp/pip-build-env-w3j3rbae/overlay/lib/python3.9/site-packages/torch/include/c10/util/C++17.h:27:2: error: #error You need C++17 to compile PyTorch
         27 | #error You need C++17 to compile PyTorch
            |  ^~~~~
...

subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'bindings', '--config', 'Release', '--', '-j80']' returned non-zero exit status 2.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for marius
Failed to build marius

Environment
Executed on Ubuntu system, all the dependencies satisfy the requirement.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions