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())
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())