I solved the issue by adding swap and --no-cache-dir
(My ram’s size is 512mb)
first: create swap
# create swap file of 512 MB
dd if=/dev/zero of=/swapfile bs=1024 count=524288
# modify permissions
chown root:root /swapfile
chmod 0600 /swapfile
# setup swap area
mkswap /swapfile
# turn swap on
swapon /swapfile

second: install without cache dir
pip3  --no-cache-dir  install http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl


  
      stackoverflow.com
  
  
      
    
  

  Memory error while using pip install Matplotlib 52



  python, matplotlib



  asked by
  
  
    nishanth anand
  
  on 06:47AM - 06 Apr 15


  
  
    
    
  
  



  
      
      chirale – 15 Jan 17
  
  
    

Memory Error on pip install (SOLVED) 181

Memory Error when using pip install on Python can emerge both from command line or from a IDE like PyCharm, usually when the package size is big. When you try to install a python package with pip i…