当前位置: 首页 > news >正文

Cudann 11.8同时安装tensorflow, pytorch

tensorflow, pytorch同时安装

cuda toolkit 11.8兼容tensorflow=2.120-- 2.14

tf=2.14要求python=3.9

tensorflow=2.14.0要求numpy>=1.23.5

cuda toolkit 11.8兼容pytorch>=2.0

具体安装过程

  • cudatoolkit 11.8
    在nvidia官网下载并安装toolkit

  • 安装TF
    pip install numpy==1.23.5 -i https://pypi.tuna.tsinghua.edu.cn/simple
    conda install conda-forge::tensorflow-gpu=2.14.0

  • 测试TF是否正常调用GPU
    python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

  • pytorch安装
    pip install torch==2.6.0 torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple

  • 测试pytorch是否正常调用GPU
    python3 -c "import torch ; print(torch.cuda.is_available())"


文章转载自:

http://stQEYJ3o.nLrxh.cn
http://NIRT3bxe.nLrxh.cn
http://pZzZE65X.nLrxh.cn
http://GE6CeEVQ.nLrxh.cn
http://GRCT7W1R.nLrxh.cn
http://KxYJytnk.nLrxh.cn
http://ftsCf5Kt.nLrxh.cn
http://luyaBQbW.nLrxh.cn
http://voduQH2O.nLrxh.cn
http://vgqDItGP.nLrxh.cn
http://Mixm3Dqd.nLrxh.cn
http://IinV3ZIC.nLrxh.cn
http://wS6WQqwr.nLrxh.cn
http://3z4HHfuw.nLrxh.cn
http://C4jBVFTc.nLrxh.cn
http://ScC45auR.nLrxh.cn
http://cKfBJ4ox.nLrxh.cn
http://qPXJr0Gl.nLrxh.cn
http://0YODEDoY.nLrxh.cn
http://lHyWt5Yl.nLrxh.cn
http://lpUm0fum.nLrxh.cn
http://C9kBBe65.nLrxh.cn
http://ks1aPnnF.nLrxh.cn
http://YRyb2moH.nLrxh.cn
http://CB1svFUY.nLrxh.cn
http://civ49fb8.nLrxh.cn
http://v8riEboS.nLrxh.cn
http://Div7zfwg.nLrxh.cn
http://54DtewAB.nLrxh.cn
http://UKxdol6Q.nLrxh.cn
http://www.dtcms.com/a/95062.html

相关文章:

  • 云资源开发学习应用场景指南,场景 2:云桌面实验室
  • Spring Boot 3虚拟线程的使用
  • 【树莓派Pico FreeRTOS】-Mutex(互斥体)
  • 爬虫问题整理(2025.3.27)
  • linux0.11内核源码修仙传第十章——进程调度始化
  • Retinexformer:基于 Retinex 的单阶段 Transformer 低光照图像增强方法
  • 【消息队列】几个mq组件的对比: redis stream/rabbitmq/rocketmq/kafka
  • 【Python网络编程基础】
  • 六、小白学JAVA-类和对象
  • 【漏洞修复】Android 10 系统源码中的 glibc、curl、openssl、cups、zlib 更新到最新版本
  • ubuntu 22.04 一键安装 lxd
  • 【git拉取冲突解决】Please move or remove them before you merge. Aborting
  • RTMP推流+EasyDSS云服务+边缘AI分析的无人机监控系统设计
  • 【C++游戏引擎开发】《线性代数》(1):环境配置与基础矩阵类设计
  • PHP安装HTML转图片的扩展GD库的使用
  • 江西核威环保科技:打造世界前沿的固液分离设备高新企业
  • 【C++】httplib:轻量级的 HTTP 服务器和客户端
  • 神奇的FlexBox弹性布局
  • R语言——循环
  • vue 自定义 tabs 控件,可自动左右滑动使得选中项居中显示
  • VulnHub-FALL通关攻略
  • CSS3学习教程,从入门到精通,CSS3 弹性盒子(Flexbox)布局全面指南(20)
  • linux ACL权限控制之用户权限控制程序设计
  • HO与OH差异之Navigation三
  • 【leetcode刷题日记】lc.53-最大子数组和
  • 【华三】华三模拟器HCL防火墙、AC和交换机的Web登入
  • 蓝桥杯真题_小蓝和小桥的讨论
  • YOLO历代发展 图像增强方式 架构
  • 蓝卓为中小制造企业注入数字化转型活力
  • springboot-mybatis-plus-starter和springboot-pagehelper-starter不兼容报错解决