vps cenots7自带的python2.7各种毛病,浪费了不少时间,装了pyhton3一下就搞定了
mac上有些依赖库需要sudo安装
vps上是基于Anaconda搭建的,感谢极客学院的教程http://wiki.jikexueyuan.com/project/tensorflow-zh/get_started/os_setup.html
升级到最新版 pip3 install --ignore-installed --upgrade tensorflow
开关conda
source activate tensorflow
source deactivate
查看是否安装成功
python3
import tensorflow as tf
tf.__version__
tf.__path_
时间: 2024-11-05 02:18:51