open-mmlab / mmdeploy

OpenMMLab Model Deployment Framework
https://mmdeploy.readthedocs.io/en/latest/
Apache License 2.0
2.73k stars 627 forks source link

Jetson Xavier NX install mmcv MMCV_WITH_OPS=1 pip install -e . failed #2603

Open L-Carson opened 9 months ago

L-Carson commented 9 months ago

Checklist

Describe the bug

mmdeploy/docs/zh_cn/01-how-to-build/jetsons.md 安装 MMCV pip install opencv-python==4.8.0.76 报Building wheel for opencv-python (pyproject.toml) ... error ERROR: Failed building wheel for opencv-python Failed to build opencv-python ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects

Reproduction

cd mmcv pip install opencv-python==4.8.0.76 MMCV_WITH_OPS=1 pip install -e .

Environment

jetpack 4.6.4,mmcv==2.0.0

Error traceback

No response

yinfan98 commented 9 months ago

r u using the python==3.6? python 3.6 don't support the latest version opencv-python. Try the earlier opencv-python.

Reference https://github.com/opencv/opencv-python/issues/812

L-Carson commented 9 months ago

thanks, but I have used the earlier version(newest is 4.8.0.81, I used the 4.8.0.76), and last time I succeed, but now I failed. So does have other method to solve it?

yinfan98 commented 9 months ago

@L-Carson Hi, This may not caused by the mmcv... maybe you can find solution in opencv repo