报错:

InvalidArchiveError("Error with archive /anaconda3/pkgs/pytorch-1.2.0-py3.7_cuda10.0.130_cudnn7.6.2_0.tar.bz2.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nFailed to open '/anaconda3/pkgs/pytorch-1.2.0-py3.7_cuda10.0.130_cudnn7.6.2_0.tar.bz2'")

在这里插入图片描述
解决办法:
删除**/anaconda3/pkgs/pytorch-1.2.0-py3.7_cuda10.0.130_cudnn7.6.2_0**
重新安装即可

smartcity@smartcity-X780-G30:~$ rm -rf /anaconda3/pkgs/pytorch-1.2.0-py3.7_cuda10.0.130_cudnn7.6.2_0
smartcity@smartcity-X780-G30:~$ conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: done

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐