【环境】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’)

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)