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

Could not build wheels for cupy #76

Open
blastilonic opened this issue Sep 18, 2024 · 1 comment
Open

Could not build wheels for cupy #76

blastilonic opened this issue Sep 18, 2024 · 1 comment

Comments

@blastilonic
Copy link

blastilonic commented Sep 18, 2024

Hello, I have a problem.

When I run docker build --no-cache -t vsgan_tensorrt:latest .

I have this error:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cupy
Running setup.py clean for cupy
Failed to build cupy
ERROR: Could not build wheels for cupy, which is required to install pyproject.toml-based projects

Part of the code where I have this problem:

RUN git clone https://github.com/cupy/cupy --recursive && cd cupy && git submodule update --init && python3.12 -m pip install . --break-system-packages && \
  MAKEFLAGS="-j$(nproc)" python3.12 setup.py bdist_wheel
@styler00dollar
Copy link
Owner

styler00dollar commented Sep 18, 2024

That text alone doesn't say much. Do you have Nvidia driver 560+? You could try to build with this with --verbose, maybe this will print more useful information. I just tested and it builds fine on my system. I think it most likely is related to how you set up your docker env.

RUN git clone https://github.com/cupy/cupy --recursive && cd cupy && git submodule update --init && python3.12 -m pip install . --break-system-packages --verbose && \
  MAKEFLAGS="-j$(nproc)" python3.12 setup.py bdist_wheel --verbose

If you do this because the non-avx docker is outdated, I use quite old hardware to build that docker and it takes around a full day to complete one build, so I didn't do it yet. Could try this weekend.

Also, please properly format text.

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

2 participants