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

【环境】linux下普通权限用户conda安装pytorch相关包报错——conda.gateways.disk.delete:unlink

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

【环境】linux下普通权限用户conda安装pytorch相关包报错——conda.gateways.disk.delete:unlink

解决方法

LInux切换到root用户再进行conda安装,可能之前conda某些包使用在root 用户下进行安装

出现背景

Linux下之前在root下是使用conda安装软件包 ,再使用普通用户conda,就会报错

conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch -y

错误提示1

WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(139): Could not remove or rename /home/zengxingyu/anaconda3/pkgs/openssl-1.1.1o-h7f8727e_0/include/openssl/x509_vfy.h. Please remove this file manually (you may need to reboot to free file handles)

错误提示2

InvalidArchiveError (‘Error with archive /data/zengxingyu/anaconda3/pkgs/jpeg-9b-h024ee3a_2l59fl2wj/info-jpeg-9b-h024ee3a_2.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:nnCould not unlink’)

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

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

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