我无法安装pytorch 1.5.0。首先,我打开Anaconda Prompt并激活我的venv,如下所示:
conda activate gym
之后,我想在健身房安装pytorch,所以我写道:
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
This is from pytorch official website.
但是我的硬盘空间不足,因此安装失败。我已经清理了一些空间,然后再次运行了该命令,但是它说:
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename D:\Python\Anaconda\pkgs\pytorch-1.5.0-py3.8_cuda102_cudnn7_0\Lib\site-packages\torch\lib\torch_cuda.dll. Please remove this file manually (you may need to reboot to free file handles)
I have deleted the whole archive and rebooted my PC. The error persisted. I did these steps several times.
Then I thought to install it in another way. I deleted the archive again and I was sure that there was no package left called pytorch (the archive was under pkgs
folder under Anaconda installation). So I went to Anaconda official website where I found this command:
conda install -c pytorch pytorch
我尝试过,现在它说:
InvalidArchiveError('Error with archive D:\\Python\\Anaconda\\pkgs\\pytorch-1.5.0-py3.8_cuda102_cudnn7_0.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFile size could not be restored')
肯定已从我的磁盘中删除了存档。
I even updated all packages in Anaconda with conda update -n gym --all
and tried these steps several times.
所有这些问题仅仅是因为我磁盘空间不足? ...
我不知道该怎么办。你能帮我么?非常感谢您的回答!我真的很感激!