原文链接

装置TensorFlow2:

pip install tensorflow==2.0.0-alpha0

装置TensorFlow1:

pip install --upgrade tensorflow-gpu==1.11.0

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

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

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

pythonimport tensorflow as tftf.__version__

能够看到TensorFlow版本为2.0.0

 
 

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

代码的路