Linux ssh安装tensorflow

Linux ssh安装tensorflow-GPU 1.7

pip install -U tensorflow-gpu==1.7

Linux ssh安装tensorflow-GPU 1.7 中国境内阿里源加速

pip install--upgrade pip

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.7

Linux ssh安装tensorflow-GPU 1.14 

pip install tensorflow-gpu==1.14.0

Linux ssh安装tensorflow2.0

python

import tensorflow as tf

如果提示

【>>> import tensorflow as tf

Traceback (most recent call last):

  File "", line 1, in

ModuleNotFoundError: No module named 'tensorflow'】

则 ctrl+z退出python后

pip install --upgrade --ignore-installed tensorflow

或者

pip install --user --upgrade --ignore-installed tensorflow.

查看安装版本及查询是否安装成功

python

import tensorflow as tf

tf.__version__

查询tensorflow安装路径在哪

python

import tensorflow as tf

tf.__path__

你可能感兴趣的:(Linux ssh安装tensorflow)