Skip to content

Error installing lavis manually on windows #20

@ntrouve-onera

Description

@ntrouve-onera

Hi, I got an error trying to manually install lavis :

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
╰─> [24 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
C:\Users\ntrou\AppData\Local\Temp\pip-build-env-kk1efs24\overlay\Lib\site-packages\Cython\Compiler\Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:\Users\ntrou\AppData\Local\Temp\pip-install-e3akoyw_\pycocotools_9dd8a3ea92f0467e9fc5089539b49339\pycocotools_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Compiling pycocotools/_mask.pyx because it changed.
[1/1] Cythonizing pycocotools/_mask.pyx
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
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\ntrou\AppData\Local\Temp\pip-build-env-kk1efs24\overlay\Lib\site-packages\numpy\core\include -I./common "-IE:\Creation Jeu 2D\IA\stable\stable-diffusion-webui\venv\include" -IC:\Users\ntrou\AppData\Local\Programs\Python\Python310\include -IC:\Users\ntrou\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-cpython-310\Release./common/maskApi.obj
maskApi.c
./common/maskApi.c(8): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'math.h'ÿ: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe' failed with exit code 2
[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
WARNING: Ignoring invalid distribution -illow (e:\creation jeu 2d\ia\stable\stable-diffusion-webui\venv\lib\site-packages)

Any idea why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions