问题描述

File “”, line 1, in
File “/tmp/pip-build-o148qsmj/opencv-python/setup.py”, line 10, in
from skbuild import cmaker, setup
ModuleNotFoundError: No module named ‘skbuild’

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-o148qsmj/opencv-python/

在这里插入图片描述

解决方案

解决方案

之后报的第二个错误

在这里插入图片描述

在这里插入图片描述

Problem with the CMake installation, aborting build. CMake executable is cmake


Failed building wheel for opencv-python
Running setup.py clean for opencv-python
Failed to build opencv-python

Problem with the CMake installation, aborting build. CMake executable is cmake

----------------------------------------

解决办法

pip install --upgrade pip -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

在这里插入图片描述

完美解决

在这里插入图片描述

更多推荐