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

解决方法

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:\n\nCould not unlink’)

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/imwaters/article/details/125082746