关于linux:Linux安装tensorflow

原文链接

装置TensorFlow2:

pip install tensorflow==2.0.0-alpha0

装置TensorFlow1:

pip install --upgrade tensorflow-gpu==1.11.0

若要减速,能够思考降级pip后换成国内清华源:

pip install --user --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

顺次输出以下命令查看是否装置胜利:

python
import tensorflow as tf
tf.__version__

能够看到TensorFlow版本为2.0.0

 
 

学习更多编程常识,请关注我的公众号:

代码的路

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理