Windows10安装opencv-python

一,下载opencv-python

先在Python第三方库官网下载opencv-python的包
官网地址:https://pypi.org/
Windows10安装opencv-python_第1张图片
根据Python版本,系统版本下载第三方包

二,安装依赖库

直接安装opencv-python

pip3 install opencv-python

会有skbuild,cmake等依赖库报错,先安装依赖

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple scikit-build
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple cmake

再次尝试,opencv-python安装成功

你可能感兴趣的:(python学习,opencv,python,windows)