網站首頁 學習教育 IT科技 金融知識 旅遊規劃 生活小知識 家鄉美食 養生小知識 健身運動 美容百科 遊戲知識 綜合知識
當前位置:趣知科普吧 > IT科技 > 

opencv安裝教程python

欄目: IT科技 / 發佈於: / 人氣:1.46W
<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