open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.46k stars 9.44k forks source link

pycocotools installed from mim can not run on M1 Pro MacBook #7068

Open lucasjinreal opened 2 years ago

lucasjinreal commented 2 years ago
/dl/lib/python3.9/site-packages/pycocotools/mask.py", line 3, in <module>
    import pycocotools._mask as _mask
ImportError: dlopen(
dl/lib/python3.9/site-packages/pycocotools/_mask.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

I got some import error which caused by ARCH not right. How to use pycocotools on M1 pro?

ZwwWayne commented 2 years ago

Could you follow the issue template to tell us the command you use to install pycocotools?