Steps to install Tensorflow-GPU+OpenCV package on Anaconda (full instructions)

At the same time, there may be some version problems when using Tensorlfow and OpenCV on Anaconda. I will share the process that worked before.

1. Installation environment

Anaconda + CUDA10.0 + CUDNN7.5.0 ;

Two, configure Anaconda mirror source

Open the console directly and enter:

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

Note: If an HTTP0 error occurs after creating a new environment:
Open: Change .condarc under
C:\Users<your user name>
to:

channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
ssl_verify: true
show_channel_urls: true

Three, create a new environment

Open the console and enter the following commands in sequence:

conda create -n python36 python=3.6
activate python36
conda install tensorflow-gpu=1.13
conda install scikit-image
conda install matplotlib
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

Guess you like

Origin blog.csdn.net/qq_36926782/article/details/108991248