问题描述
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
完美解决