在Ubuntu18.04安装pytorch
cuda最高支持11.2
我用以下命令下载pytorch
pip install torch1.12.1+cu102 torchvision0.13.1+cu102 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu102
之后,几条进度条就运行了,后面发生了异常:
Install collected packages:urlib3,typing-extensions,pillow,numpy,idna,charset-normalizer,certifi,torch,requests,torchvision,torchaudio
ERROR:Could not install packages due to an OSError:[Error 28] No space left on device :/home/robot/anaconda3/envs/torchgpu/lib/python3.10/site-packages/urllib3
可是,电脑的磁盘容量是足够的,为什么错误提示说,没有足够的空间呢?
恳请,各位大佬解答
搞定啦,我查看了ananconda3的目录的properties,发现anaconda3的env太多了,空间没了。删除ananconda3/pkgs 里面的安装包,就有空间了,安装pytorch也成功了
– 绘心人 11个月前