小编Pea*_*ace的帖子

无法构建 opencv-contrib-python(在 Rasberry Pi 上)

我正在尝试在我的 Rasberry Pi 上安装 OpenCV,但是当我运行以下命令时,出现了一些错误。命令:

pip install opencv-contrib-python

结果:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting opencv-contrib-python
  Using cached opencv-contrib-python-4.5.1.48.tar.gz (148.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy>=1.14.5 in ./.local/lib/python3.7/site-packages (from opencv-contrib-python) (1.19.5)
Building wheels for collected packages: opencv-contrib-python
  Building wheel for opencv-contrib-python (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python3 /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp5g982u_t
       cwd: /tmp/pip-install-v1dx6hv5/opencv-contrib-python_85b21e0e2a604411afeb4dda9ea29270
  Complete output (12 lines): …
Run Code Online (Sandbox Code Playgroud)

python opencv pip cmake raspberry-pi

6
推荐指数
1
解决办法
781
查看次数

标签 统计

cmake ×1

opencv ×1

pip ×1

python ×1

raspberry-pi ×1