tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

*

+
* 1.首先打开Anaconda Prompt终端
* 2. 搭建==tensorflow2.3.1 python 3.8.3==环境
* 3.激活==tensorflow2.3.1==环境
* 4.安装cudatoolkit cudnn
* 5.安装tensorflow-gpu==2.3.1
* 6. 检验是否可以使用🎈🎈🎈🎈🎈

本人电脑GPU是GTX 1650,可以完美安装,应该大家都可以安装的!!!😀😀😀

1.首先打开Anaconda Prompt终端

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

; 2. 搭建tensorflow2.3.1 python 3.8.3环境

请输入以下代码🎈

conda create --name tensorflow2.3.1 python==3.8.3

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建
  • 遇到Process,直接输入”y”,回车就好!tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

3.激活tensorflow2.3.1环境

输入以下代码🎈🎈

conda activate tensorflow2.3.1

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

4.安装cudatoolkit cudnn

输入以下代🎈🎈🎈

conda install cudatoolkit=10.1 cudnn=7.6.5

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建
  • 遇到Process,直接输入”y”,回车就好!tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

5.安装tensorflow-gpu==2.3.1

输入以下代码。图片来源使用阿里云🎈🎈🎈🎈。

[En]

Enter the following code. The image source uses Aliyun 🎈🎈🎈🎈.

pip install tensorflow-gpu==2.3.1 -i https:

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

出现这样就安装好了

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

6. 检验是否可以使用🎈🎈🎈🎈🎈

以此输入以下指令,查看对应版本,ok

python
import tensorflow as tf
tf.__version__
print(tf.test.is_gpu_available())

tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

参考文献:tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

Original: https://blog.csdn.net/vor234/article/details/121975748
Author: 2345VOR
Title: tensorflow-gpu-2.3.1安装 tensorflow安装 GPU版本tensorflow安装 tensorflow搭建

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/511168/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球