欢迎访问我的网站,希望内容对您有用,感兴趣的可以加入我们的社群。

解决OpenCV安装中出现的PEP-517错误

未分类 迷途小书童 5年前 (2019-07-07) 430次浏览 0个评论

环境

  • windows 10 64bit
  • python 3.5

问题描述

跑一个老项目,python 版本是 3.5,在通过 pip 来安装 opencv

pip install opencv-python

安装过程报错

Collecting opencv-python
  Downloading https://files.pythonhosted.org/packages/77/f5/49f034f8d109efcf9b7e98fbc051878b83b2f02a1c73f92bbd37f317288e/opencv-python-4.4.0.42.tar.gz (88.9MB)
    100% |████████████████████████████████| 88.9MB 919kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy>=1.13.1 in /usr/local/lib/python3.5/dist-packages (from opencv-python) (1.14.5)
Building wheels for collected packages: opencv-python
  Building wheel for opencv-python (PEP 517) ...

解决方法升级几个对应库

pip install --U pip setuptools wheel

然后重新安装 opencv

参考资料

喜欢 (0)

您必须 登录 才能发表评论!