环境
- 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