ERROR: Failed building wheel for opencv-contrib-python Running setup.py clean for opencv-contrib-python Failed to build opencv-contrib-python ERROR: Could not build wheels for opencv-contrib-python which use PEP 517 and cannot be installed directly WARNING: You are using pip version 19.2.3, however version 23.1.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
时间: 2024-03-17 09:45:36 浏览: 252
opencv-python-4.10.0.84.tar.gz
5星 · 资源好评率100%
这个错误提示显示无法为 opencv-contrib-python 构建 wheel,可能是由于缺少构建依赖项导致的。建议你尝试安装所需的依赖项,然后再次尝试安装 opencv-contrib-python。你可以使用以下命令安装依赖项:
```
pip install numpy setuptools cmake
```
安装完成后,再次尝试安装 opencv-contrib-python:
```
pip install opencv-contrib-python
```
如果仍然无法解决问题,可以尝试使用 conda 安装 opencv-contrib-python,或者在相关社区寻求帮助。另外,警告提示建议你升级 pip 版本,你可以使用以下命令升级:
```
python -m pip install --upgrade pip
```
阅读全文