conda命令-安裝opencv
阿新 • • 發佈:2019-01-06
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換回預設源
3.安裝opencvconda config --remove-key channels
方法一: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)