TensorFlow2.0

安装开发环境

  1、首先安装 anaconda(https://www.anaconda.com/)

  2、修改anaconda的镜像源

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
    # 设置搜索时显示通道地址
    conda config --set show_channel_urls yes

  3、如果电脑支持gpu则下载GPU版本(运行效率更高)

    conda create -n tf2 tensorflow-gpu // 创建tf2环境并安装TensorFlow

    conda activate tf2 //进入虚拟环境

    conda deactivate //退出虚拟环境

  4、进入虚拟环境中的Python解释器,验证是否成功

    

    

    

猜你喜欢

转载自www.cnblogs.com/xdl-smile/p/11911008.html