FlowNetPytorch icon indicating copy to clipboard operation
FlowNetPytorch copied to clipboard

ERROR: Failed building wheel for spatial-correlation-sampler Failed to build spatial-correlation-sampler ERROR: Could not build wheels for spatial-correlation-sampler which use PEP 517 and cannot be installed directly

Open mahao18cm opened this issue 1 year ago • 8 comments

When i try pip install -r requirement.txt, the error happen.
ERROR: Failed building wheel for spatial-correlation-sampler Failed to build spatial-correlation-sampler ERROR: Could not build wheels for spatial-correlation-sampler which use PEP 517 and cannot be installed directly

mahao18cm avatar May 18 '24 05:05 mahao18cm

I am facing the same error! Could you figure out how to resolve it?

manthasaigopal avatar Sep 24 '24 05:09 manthasaigopal

Can you try ton install the spatial-correlation-sampler directly and see how it goes ?

I recommend using the --no-build-isolation because otherwise it will download the last version of torch to link the function.

pip install spatial-correlation-sampler --no-build-isolation

ClementPinard avatar Sep 24 '24 11:09 ClementPinard

image image image image image Uploading image.png…

Still I am getting the same error!

manthasaigopal avatar Sep 24 '24 13:09 manthasaigopal

The error is telling you your version of GCC is tool old, you need GCC9 or later.

The purple color scheme somehow makes me think of ubuntu 16.04, is it your distribution ? 😱 If so, you need to upgrade ASAP !

ClementPinard avatar Sep 24 '24 15:09 ClementPinard

image

manthasaigopal avatar Sep 24 '24 15:09 manthasaigopal

Ah sorry for freaking out haha, if you want to install gcc 9 on ubuntu 20 , you might want to follow this link : https://askubuntu.com/questions/1370061/i-am-using-ubuntu-20-04-lts-trying-to-get-from-gcc-9-4-to-gcc-10-or-higher

Install it with APT (specify the version), and replace the default gcc with the version 9 (or higher) with sudo update-alternatives --config gcc

ClementPinard avatar Sep 24 '24 15:09 ClementPinard

I am accessing a remote server so can not use sudo and apt.

manthasaigopal avatar Sep 24 '24 15:09 manthasaigopal

Your main goal is to redirect the gcc call to gcc-9 or higher. The easiest solution is probably through anaconda. https://anaconda.org/conda-forge/gcc

ClementPinard avatar Sep 24 '24 15:09 ClementPinard