解决方法
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’)