Tensorflow2 GPU 安装方法

一、Tensorflow2 GPU 安装方法

    • 1. 首先安装Anaconda3环境
    • 2. 在Anaconda Prompt 中安装tensorflow2
    • 3. 验证GPU是否可以使用

1. 首先安装Anaconda3环境

https://www.anaconda.com/

2. 在Anaconda Prompt 中安装tensorflow2

conda update conda
conda create -n tensorflow python=3.9
conda activate tensorflow
pip install tensorflow-gpu==2.7.0 -i  https://pypi.mirrors.ustc.edu.cn/simple
pip install protobuf==3.19.6 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

3. 验证GPU是否可以使用

Tensorflow2 GPU 安装方法_第1张图片
Tensorflow2 GPU 安装方法_第2张图片

参考博客:https://blog.csdn.net/weixin_43412762/article/details/129824339

你可能感兴趣的:(深度学习与计算机视觉,tensorflow,人工智能,python)