conda命令-安裝opencv

1.添加清華鏡像源(參考網址:https://jingyan.baidu.com/article/1876c8527be1c3890a137645.html)

(注:windows下網址不需要單引號括起來,否則會出錯)

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda info
conda install scrapy

2.conda換回默認源

conda config --remove-key channels
3.安裝opencv

方法一:https://www.cnblogs.com/MrLJC/p/4245925.html

conda install -c https://conda.binstar.org/menpo opencv
但是提示需要python2.7,而不是python3.5,有衝突。

方法二:https://stackoverflow.com/questions/23119413/how-do-i-install-python-opencv-through-conda

conda install --channel https://conda.anaconda.org/menpo opencv3
(注意是import cv2)



發佈了33 篇原創文章 · 獲贊 7 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章