Skip to content

Failing to build the wheel #5445

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

Open
Ansh-Gandhi opened this issue Mar 1, 2025 · 1 comment
Open

Failing to build the wheel #5445

Ansh-Gandhi opened this issue Mar 1, 2025 · 1 comment

Comments

@Ansh-Gandhi
Copy link

Ansh-Gandhi commented Mar 1, 2025

  1. Full runnable code or full changes you made:
conda create -n two-stage-weed-test python=3.10.12

%conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia
!python -m pip install cython pyyaml
!python -m pip install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
!python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
  1. Full logs or other relevant observations:
Channels:
 - pytorch
 - nvidia
 - defaults
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/agandh04/miniconda3/envs/two-stage-weed-test

  added / updated specs:
    - pytorch-cuda=11.6
    - pytorch==1.13.1
    -  torchaudio==0.13.1
    - torchvision==0.14.1


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    blas-1.0                   |              mkl           6 KB
...
  ERROR: Failed building wheel for detectron2
  Running setup.py clean for detectron2
Failed to build detectron2
ERROR: Failed to build installable wheels for some pyproject.toml based projects (detectron2)
@PrinceAlmeida
Copy link

Hey Ansh,

Even I was facing the same problem I have python 3.10 got the same wheel error.

"Check your python version. If you have Python version as 3.10 or higher you will face this issue. This is because detectron2 library has only wheels for <= Python 3.9."

Source stack overflow

https://stackoverflow.com/questions/75357936/how-to-install-detectron2

Thanks

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