Ubuntu下安装tensorflow,conda权限问题

先安装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__

猜你喜欢

转载自www.cnblogs.com/rookiezjz/p/12521085.html
今日推荐