当前位置:懂科普 >

IT科技

> opencv安装教程python

opencv安装教程python

<link rel="stylesheet" href="https://js.how234.com/third-party/SyntaxHighlighter/shCoreDefault.css" type="text/css" /><script type="text/javascript" src="https://js.how234.com/third-party/SyntaxHighlighter/shCore.js"></script><script type="text/javascript"> SyntaxHighlighter.all(); </script>

opencv安装教程python,一起来看看吧:

方法一:进入cmd命令行,直接输入pip install opencv-python 然后回车就可以了

方法二:使用其他下载路径(使用镜像)

指令如下:

1、

pip install opencv-contrib-python

2、清华镜像

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

可换用其他镜像:

阿里云:http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/华中理工大学:http://pypi.hustunique.com/山东理工大学:http://pypi.sdutlinux.org/ 豆瓣:http://pypi.douban.com/simple/

还是报错,再尝试指令:

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

遇到权限问题再加user:

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

opencv安装教程python

标签: 安装 opencv Python
  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/0mwdrj.html