栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

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

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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终端

2. 搭建tensorflow2.3.1 python 3.8.3环境

请输入以下代码

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

  • 遇到Process,直接输入“y”,回车就好!
3.激活tensorflow2.3.1环境

输入以下代码

conda activate tensorflow2.3.1

4.安装cudatoolkit cudnn

输入以下代

conda install cudatoolkit=10.1 cudnn=7.6.5

  • 遇到Process,直接输入“y”,回车就好!
5.安装tensorflow-gpu==2.3.1

输入以下代码,镜像源采用阿里云

pip install tensorflow-gpu==2.3.1 -i https://mirrors.aliyun.com/pypi/simple/

出现这样就安装好了

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

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

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

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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/664711.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号