1、安装opencv关于python包
这句是安装opencv的包指令
pip install opencv-python
但是,下载速度太慢了,可以使用国内的镜像源

pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple/

使用清华源镜像下载
-i 后面为镜像源的地址

国内的pip源,如下:

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐