安装tensorflow2.0

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

import tensorflow as tf
print(tf.__version__)
#输出'2.0.0-alpha0'
print(tf.test.is_gpu_available())
原文地址:https://www.cnblogs.com/timlong/p/11677263.html