tensorflow2.0安装

anaconda3.7

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

测试:

import tensorflow as tf
version = tf.__version__
gpu_ok = tf.test.is_gpu_available()
print("tf version:",version,"\nif use GPU",gpu_ok)

"""
tf version: 2.0.0 
if use GPU False
"""
发布了80 篇原创文章 · 获赞 6 · 访问量 7654

猜你喜欢

转载自blog.csdn.net/qq_33749437/article/details/104133156