本经验帖都是在Ubuntu上实现的
一、安装conda
1、下载conda
如果你的python为2.x,则其下载
wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh #如果不正确到官网下载
2、安装conda
chmod 777 Miniconda2-latest-Linux-x86_64.sh
bash Miniconda2-latest-Linux-x86_64.sh
基本上都是enter+yes的输入
source ~/.bashrc
二、安装tensorflow
1、创建虚拟环境
conda create -n tf
2、激活虚拟环境
conda activate tf
3、安装tensorflow
conda install tenorflow
4、测试
import tensorflow as tf