Skip to content

Instantly share code, notes, and snippets.

@linw1995
Last active December 18, 2017 07:48
Show Gist options
  • Select an option

  • Save linw1995/b4e04a023316c921bcc39a5a25d651f9 to your computer and use it in GitHub Desktop.

Select an option

Save linw1995/b4e04a023316c921bcc39a5a25d651f9 to your computer and use it in GitHub Desktop.
如何安装 Python openCV 环境

如何安装 Python openCV 环境

  1. 首先安装 Anaconda ,推荐安装Python3.x版本。 使用清华镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
conda config --set show_channel_urls yes
  1. 新建新的Python env 新建Python2.7环境,或者Python3.6环境,并激活
conda create --name py27 python=2.7
activate py27
  1. 最后安装 openCV
conda install opencv -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment