Tensorflow2.0环境搭建(极简)

1、安装Python环境,如果已安装可跳过,笔者推荐安装Miniconda

   Miniconda下载地址:

   地址1:https://docs.conda.io/en/latest/miniconda.html 

   地址2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/

2、创建Python虚拟环境,使用conda create -n --ENVIRONMENT创建,eg: conda create -n tensorflow-gpu

3、激活创建的虚拟环境,conda activate $ENVIRONMENT_NAME, eg: conda activate tensorflow-gpu

4、安装Tensorflow2.0 GPU版本, conda install tensorflow-gpu

5、检查本机的cuda版本与conda install tensorflow-gpu安装的cudatoolkit包的版本是否一致,不一致请升级本机的显卡驱动程序

 

posted @ 2020-02-15 11:14  灵客风  阅读(322)  评论(0)    收藏  举报