Open ForwardForward opened 1 year ago
I got the same error,it seem that the pycocotools cannot be installed in WINDOWS. You can downgrade your python version to 3.8 or older. Then run "pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI". Just try it, maybe it will work.
You can also try installing pycocotools using conda if you're in a conda environment:
conda install pycocotools -c conda-forge
And then proceed with installing mmdet
Hi all !
Then I try install mmocr and do mim install mmdet I receive mistake with pycocotools in Windows 10.
I try use two ways of install mmocr:
mim install mmocr
git clone https://github.com/open-mmlab/mmocr.git cd mmocr pip install -v -e .
Also I try that: mim install mmdet
By all the ways I receive next mistale:
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-38 creating build\lib.win-amd64-cpython-38\pycocotools copying pycocotools\coco.py -> build\lib.win-amd64-cpython-38\pycocotools copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-38\pycocotools copying pycocotools\mask.py -> build\lib.win-amd64-cpython-38\pycocotools copying pycocotools__init__.py -> build\lib.win-amd64-cpython-38\pycocotools running build_ext cythoning pycocotools/_mask.pyx to pycocotools_mask.c building 'pycocotools._mask' extension C:\Users\igorb\AppData\Local\Temp\pip-build-env-rjyj771z\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\igorb\AppData\Local\Temp\pip-install-kw0d6pi7\pycocotools_53dc49e9c1f54228986bb075233c5b1c\pycocotools_mask.pyx tree = Parsing.p_module(s, pxd, full_module_name) 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