在Python中安装Opencv-Python经常会出现莫名其妙的安装错误,如下:
(yolov5_deepsort) F:\huaweiOBS\Smart-Transportation-System-main>pip install opencv-python -i https://pypi.doubanio.com/simple/
Looking in indexes: https://pypi.doubanio.com/simple/
Collecting opencv-python
Using cached https://mirrors.cloud.tencent.com/pypi/packages/4a/e7/b70a2d9ab205110d715906fc8ec83fbb00404aeb3a37a0654fdb68eb0c8c/opencv-python-4.10.0.84.tar.gz (95.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.13.3 in f:\anaconda\install1\envs\yolov5_deepsort\lib\site-packages (from opencv-python) (1.19.2)
Building wheels for collected packages: opencv-python
Building wheel for opencv-python (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'F:\anaconda\install1\envs\yolov5_deepsort\python.exe' 'F:\anaconda\install1\envs\yolov