Out of memory error with pytorch installation


I been trying to install pytorch from anaconda and keep getting out of memory issue. My first try is

conda install pytorch torchvision -c pytorch

this feedback out of memory

After research, many sites suggested to include a no cache command, so I try the command to

conda install pytorch torchvision -c pytorch --no-cache-dir

–no-cache-dir conda install pytorch torchvision -c pytorch

However, the system reports that --no-cache-dir as unrecognized arguments.

My python is 3.6.5. tk version; 8.6.6

I think this is a pip, not a conda command line argument. In this case, try to install it via

pip3 install torch torchvision --no-cache-dir



This work for me. Thanks:+1:

1 Like

Hi! are you working on windows?
I’m trying this on Ubuntu 18.04 but it’s giving me memoryerror

This is also work for me, thanks

same for me, it always show an error

Could you post the error message here please?

i have reboot the computer and i works now (with --no-cache-dir).