https://blog.csdn.net/Mr_xuexi/article/details/88815107
新环境安装步骤
0 下载anaconda wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh
1. 安装anaconda bash Anaconda3-5.2.0-Linux-x86_64.sh
- 先安装创建python 的tensorflow 环境 conda create -n ldh-tf1.12 tensorflow python=3.6.8
- 先激活tensorflow (source) conda activate tensorflow(ldh-tf1.12环境名替换tensorflow)
- 安装tensorflow conda install tensorflow-gpu=1.12.0
- 安装opencv3 conda install --channel https://conda.anaconda.org/menpo opencv3
- 可能还需安装一些数据包 conda install numpy/pandas/matplotlib/pillow
如果是CPU安装从第3点改为清华镜像安装 pip install tensorflow==1.12 -i https://pypi.tuna.tsinghua.edu.cn/simple
tensorflow==1.12为指定版本号