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__
网友评论