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

Failed to build groundingdino pycocotools #205

Open
BuQingYan opened this issue Apr 26, 2023 · 3 comments
Open

Failed to build groundingdino pycocotools #205

BuQingYan opened this issue Apr 26, 2023 · 3 comments

Comments

@BuQingYan
Copy link

error log :

Command: "D:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\python.exe" -m pip install git+https://github.com/IDEA-Research/GroundingDINO --prefer-binary --index-url https://mirrors.bfsu.edu.cn/pypi/web/simple
Error code: 1
stdout: Active code page: 65001

Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple, https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.doubanio.com/simple

Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html

Collecting git+https://github.com/IDEA-Research/GroundingDINO

Cloning https://github.com/IDEA-Research/GroundingDINO to c:\users\wyfx1\appdata\local\temp\pip-req-build-jlv0bljx

Resolved https://github.com/IDEA-Research/GroundingDINO to commit da9f1c0751935e9284890572069f4b2fef4cbfdc

Preparing metadata (setup.py): started

Preparing metadata (setup.py): finished with status 'done'

Requirement already satisfied: torch in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.0.0+cu118)

Requirement already satisfied: torchvision in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.15.1+cu118)

Requirement already satisfied: transformers in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.25.1)

Requirement already satisfied: addict in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.4.0)

Requirement already satisfied: yapf in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.32.0)

Requirement already satisfied: timm in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.6.7)

Requirement already satisfied: numpy in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (1.23.3)

Requirement already satisfied: opencv-python in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.7.0.72)

Collecting supervision==0.6.0

Using cached https://pypi.doubanio.com/packages/42/7a/4fe657cae29eedeca34756a80a053ac3b1b3c80462cdb6768f428625f9ca/supervision-0.6.0-py3-none-any.whl (31 kB)

Collecting pycocotools

Using cached https://pypi.doubanio.com/packages/ef/c6/90220be3b39fbc4cbd203775ca47dd8dc97fae06fbd2b500637395621b7c/pycocotools-2.0.6.tar.gz (24 kB)

Installing build dependencies: started

Installing build dependencies: finished with status 'done'

Getting requirements to build wheel: started

Getting requirements to build wheel: finished with status 'done'

Preparing metadata (pyproject.toml): started

Preparing metadata (pyproject.toml): finished with status 'done'

Requirement already satisfied: matplotlib in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from supervision==0.6.0->groundingdino==0.1.0) (3.7.1)

Requirement already satisfied: filelock in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.12.0)

Requirement already satisfied: jinja2 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.1.2)

Requirement already satisfied: sympy in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (1.11.1)

Requirement already satisfied: networkx in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.1)

Requirement already satisfied: typing-extensions in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (4.5.0)

Requirement already satisfied: requests in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (2.25.1)

Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (9.4.0)

Requirement already satisfied: pyyaml>=5.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (6.0)

Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.3)

Requirement already satisfied: tqdm>=4.27 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (4.65.0)

Requirement already satisfied: huggingface-hub<1.0,>=0.10.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.4)

Requirement already satisfied: packaging>=20.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (23.1)

Requirement already satisfied: regex!=2019.12.17 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (2023.3.23)

Requirement already satisfied: fonttools>=4.22.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (4.39.3)

Requirement already satisfied: python-dateutil>=2.7 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (2.8.2)

Requirement already satisfied: kiwisolver>=1.0.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.4.4)

Requirement already satisfied: pyparsing>=2.3.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (3.0.9)

Requirement already satisfied: contourpy>=1.0.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.0.7)

Requirement already satisfied: cycler>=0.10 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (0.11.0)

Requirement already satisfied: colorama in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from tqdm>=4.27->transformers->groundingdino==0.1.0) (0.4.6)

Requirement already satisfied: MarkupSafe>=2.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from jinja2->torch->groundingdino==0.1.0) (2.1.2)

Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (1.26.15)

Requirement already satisfied: idna<3,>=2.5 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2.10)

Requirement already satisfied: chardet<5,>=3.0.2 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (4.0.0)

Requirement already satisfied: certifi>=2017.4.17 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2022.12.7)

Requirement already satisfied: mpmath>=0.19 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from sympy->torch->groundingdino==0.1.0) (1.3.0)

Requirement already satisfied: six>=1.5 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from python-dateutil>=2.7->matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.16.0)

Building wheels for collected packages: groundingdino, pycocotools

Building wheel for groundingdino (setup.py): started

Building wheel for groundingdino (setup.py): finished with status 'error'

Running setup.py clean for groundingdino

Building wheel for pycocotools (pyproject.toml): started

Building wheel for pycocotools (pyproject.toml): finished with status 'error'

Failed to build groundingdino pycocotools

stderr: Running command git clone --filter=blob:none --quiet https://github.com/IDEA-Research/GroundingDINO 'C:\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx'

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.

│ exit code: 1

╰─> [64 lines of output]

  Building wheel groundingdino-0.1.0

  Compiling with CUDA

  running bdist_wheel

  D:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.

    warnings.warn(msg.format('we could not find ninja.'))

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-cpython-310

  creating build\lib.win-amd64-cpython-310\groundingdino

  copying groundingdino\version.py -> build\lib.win-amd64-cpython-310\groundingdino

  copying groundingdino\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino

  creating build\lib.win-amd64-cpython-310\groundingdino\datasets

  copying groundingdino\datasets\transforms.py -> build\lib.win-amd64-cpython-310\groundingdino\datasets

  copying groundingdino\datasets\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\datasets

  creating build\lib.win-amd64-cpython-310\groundingdino\models

  copying groundingdino\models\registry.py -> build\lib.win-amd64-cpython-310\groundingdino\models

  copying groundingdino\models\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models

  creating build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\box_ops.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\get_tokenlizer.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\inference.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\logger.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\misc.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\slconfig.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\slio.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\time_counter.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\utils.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\visualizer.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\vl_utils.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  copying groundingdino\util\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\util

  creating build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\bertwarper.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\fuse_modules.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\groundingdino.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\ms_deform_attn.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\transformer.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\transformer_vanilla.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\utils.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  copying groundingdino\models\GroundingDINO\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO

  creating build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone

  copying groundingdino\models\GroundingDINO\backbone\backbone.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone

  copying groundingdino\models\GroundingDINO\backbone\position_encoding.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone

  copying groundingdino\models\GroundingDINO\backbone\swin_transformer.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone

  copying groundingdino\models\GroundingDINO\backbone\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone

  running build_ext

  D:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。

    warnings.warn(f'Error checking compiler version for {compiler}: {error}')

  building 'groundingdino._C' extension

  creating build\temp.win-amd64-cpython-310

  creating build\temp.win-amd64-cpython-310\Release

  creating build\temp.win-amd64-cpython-310\Release\Users

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc

  creating build\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc\MsDeformAttn

None
cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IC:\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include\torch\csrc\api\include -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include\TH -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\include -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\Include /EHsc /TpC:\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc\MsDeformAttn\ms_deform_attn_cpu.cpp /Fobuild\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc\MsDeformAttn\ms_deform_attn_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
GroundingDINO install failed. Please submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues.

  error: command 'cl.exe' failed: None

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for groundingdino

error: subprocess-exited-with-error

× Building wheel for pycocotools (pyproject.toml) did not run successfully.

│ exit code: 1

╰─> [18 lines of output]

  running bdist_wheel

  running build

  running build_py

  creating build

creating build\lib.win-amd64-cpython-310

  creating build\lib.win-amd64-cpython-310\pycocotools

  copying pycocotools\coco.py -> build\lib.win-amd64-cpython-310\pycocotools

  copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-310\pycocotools

  copying pycocotools\mask.py -> build\lib.win-amd64-cpython-310\pycocotools

  copying pycocotools\__init__.py -> build\lib.win-amd64-cpython-310\pycocotools

  running build_ext

  building 'pycocotools._mask' extension

  creating build\temp.win-amd64-cpython-310

  creating build\temp.win-amd64-cpython-310\Release

  creating build\temp.win-amd64-cpython-310\Release\common

  creating build\temp.win-amd64-cpython-310\Release\pycocotools

  cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\numpy\core\include -I./common -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\include -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\Include /Tc./common/maskApi.c /Fobuild\temp.win-amd64-cpython-310\Release\./common/maskApi.obj

  error: command 'cl.exe' failed: None

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for pycocotools

ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

@rentainhe
Copy link
Collaborator

Maybe you can try to install pycocotools independently from GroundingDINO~ Sry for not testing the Windows env

@zixzaxlad
Copy link

I have the exact same problem, when I try to install pycocotools independently here is the error log, I installed pyproject-toml 0.0.10 but the error persist. I'm not sure I install it correctly, I run cmd from venv/scripts

D:\AI\stable-diffusion-webui\venv\Scripts>pip install pycocotools

Collecting pycocotools
Using cached pycocotools-2.0.6.tar.gz (24 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: matplotlib>=2.1.0 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from pycocotools) (3.7.0)
Requirement already satisfied: numpy in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from pycocotools) (1.23.3)
Requirement already satisfied: contourpy>=1.0.1 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (1.0.7)
Requirement already satisfied: cycler>=0.10 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (4.38.0)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (1.4.4)
Requirement already satisfied: packaging>=20.0 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (23.0)
Requirement already satisfied: pillow>=6.2.0 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (9.4.0)
Requirement already satisfied: pyparsing>=2.3.1 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (2.8.2)
Requirement already satisfied: six>=1.5 in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib>=2.1.0->pycocotools) (1.16.0)
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools_init_.py -> build\lib.win-amd64-cpython-310\pycocotools
running build_ext
cythoning pycocotools/_mask.pyx to pycocotools_mask.c
C:\Users\ospro\AppData\Local\Temp\pip-build-env-1w3i8ewn\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\ospro\AppData\Local\Temp\pip-install-us6ocobr\pycocotools_1bc8b1070d764af3a063bc67b0bc6eda\pycocotools_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

@SlongLiu
Copy link
Contributor

Try using pycocotools-window instead of pycocotools. refer to cocodataset/cocoapi#415

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

4 participants