tensorflow2.0 超傻瓜式conda安装

tensorflow2.0 超傻瓜式conda安装

创建虚拟环境

conda create -n py37

安装cuda

conda install cudatoolkit
conda install cudnn

安装tensorflow

conda install tensorflow-gpu==2.1.0
conda install tensorflow-estimator==2.1.0

安装jupyterlab

conda install jupyterlab
conda install nb_conda

完事
测试你的tensorflow


import tensorflow as tf
print(tf.__version__)
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
print(tf.test.is_gpu_available('GPU')
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页