Ubuntu下安装tensorflow

先安装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__
posted @ 2020-03-18 22:58  hellozhangjz  阅读(186)  评论(0编辑  收藏  举报