Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #121

Open
mahao18cm opened this issue May 18, 2024 · 8 comments

Comments

@mahao18cm
Copy link

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

@saigopalm
Copy link

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

@ClementPinard
Copy link
Owner

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

@saigopalm
Copy link

image
image
image
image
image
Uploading image.png…

Still I am getting the same error!

@ClementPinard
Copy link
Owner

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 !

@saigopalm
Copy link

image

@ClementPinard
Copy link
Owner

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

@saigopalm
Copy link

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

@ClementPinard
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants