先安装anaconda
sudo chown -R user anaconda3 //权限
conda create -n tensorflow python=3.5 //环境
source activate tensorflow //切换环境
pip install pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple //使用清华镜像安装
import tensorflow as tf
tf.__version__
tf.__path__