Linux conda tensorflow-gpu安装及Not creating XLA devices, tf_xla_enable_xla_devices not set相关问题解决_alpsi
summer...
0、首先介绍一下conda创建虚拟环境的基本操作。
(1)创建皇冠新体育APP的虚拟环境,并指定皇冠新体育APP版本,不指定的话会使用默认的版本(Conda Base 环境中的皇冠新体育APP版本)。
conda create -n grape python=3.8.8 # grape可以指定为自己想要的名字
(2)加入创造好的虚拟主机生态环境。
conda activate grape
(3)登出之前AnacondaVR虚拟生态情况,在之前生态情况中程序执行低于信息。
conda deactivate
(4)清空此增强现实区域
conda remove -n grape --all
出现Not creating XLA devices, tf_xla_enable_xla_devices not set
问题,一般是由于tensorflow和cuda、cuddn的版本问题。建议直接花几分钟重新配置环境,以下有两种方法安装tensorflow。
conda create -n tf tensorflow-gpu==2.2.0
在安装过程中会自己安装相应的cuda、cuddn包。
2、安装需要的cuda和cudnn环境,再安装tensorflow-gpu。
首先我们需要确定我们需要的tensorflow-gpu的版本,再在tensorflow找到对应的cuda和cudnn版本。网上部分帖子里面的不太对,还是自己去官网看比较靠谱。
//tensorflow.google.cn/install/source#install_the_package
以tensorflow-gpu-2.2.0为例。
(1)首先创建一个python虚拟环境并激活
conda create -n grape python=3.8.8
conda activate grape
(2)在环境中按照cuda
conda install cudatoolkit=10.1 -c //mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/
(3)在工作环境中装设cudnn
conda install cudnn=7.6.5 -c //mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/
(4)连接tensorflow-gpu-2.2.0
conda install tensorflow-gpu-2.2.0
有事情欢迎图片微信留言交换。
皇冠新体育APP相关的文章
- 皇冠新体育APP:logstash消费延迟瓶颈排查_菜鸟易站_logstash消费kafka数据慢
- 皇冠新体育APP:Postman实例 - 将API返回体输出到文件_测试小白_300_postman 返回文件
- Linux 部署Nacos集群,最新教程,细到极致_Jesscia ^_^_linux部署nacos
- Linux启动mysql_m0_67265464_linux启动mysql
- 皇冠新体育APP:解决MYSQL中文乱码问题_牵着我的猪去看海_mysql中文乱码
- Kafka单机版本小总结&疑问_Hatakefiftyfifty_kafkatemplate key
- 皇冠新体育APP:mysql如何修改root用户的密码_m0_67402026_mysql修改root密码
- SpringBoot中使用RestTemplate访问Url操作并对返回对象进行操作_郭圣_Guo_resttemplate返回json对象
- Greenplum【部署 04】GPSS扩展安装并使用GPKafka实现Kafka数据导入Greenplum数据库(安装包网盘分享)_シ??_gpkafka安装
- 接口传参的三种形式_qq_36359324_接口传参
- 皇冠新体育APP:flume channel 选择_Hui950317
- JavaScript ES6 解构赋值_ximingx_es6 js 解构赋值
- 皇冠新体育APP:在CentOS下安装MySQL_CHINA-YXJ_centos安装mysql
- Kafka从入门到精通_don't_know_kafka入门到精通
- 皇冠新体育APP:Flink实时数仓项目?日志数据采集_自学大数据的菜鸡_flink 日志收集
- Connections could not be acquired from the underlying database异常,已解决。_杰杰不会hello world