美文网首页
Linux ssh安装tensorflow

Linux ssh安装tensorflow

作者: 卖点儿什么 | 来源:发表于2019-11-14 16:55 被阅读0次

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 "<stdin>", line 1, in <module>

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

      本文链接:https://www.haomeiwen.com/subject/sggrictx.html