title: How to install torch in python
body: <p>I tried <code>pip3 install torch --no-cache-dir</code> and, after few seconds, I got this:</p>
  
  <pre><code>Collecting torch
        Downloading https://files.pythonhosted.org/packages/24/19/4804aea17cd136f1705a5e98a00618cb8f6ccc375ad8bfa437408e09d058/torch-1.4.0-cp36-cp36m-manylinux1_x86_64.whl (753.4MB)
          100% |████████████████████████████████| 753.4MB 5.7MB/s 
      Exception:
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
          status = self.run(options, args)
        File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 342, in run
          requirement_set.prepare_files(finder)
        File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files
          ignore_dependencies=self.ignore_dependencies))
        File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 620, in _prepare_file
          session=self.session, hashes=hashes)
        File "/usr/lib/python3/dist-packages/pip/download.py", line 821, in unpack_url
          hashes=hashes
        File "/usr/lib/python3/dist-packages/pip/download.py", line 663, in unpack_http_url
          unpack_file(from_path, location, content_type, link)
        File "/usr/lib/python3/dist-packages/pip/utils/__init__.py", line 617, in unpack_file
          flatten=not filename.endswith('.whl')
        File "/usr/lib/python3/dist-packages/pip/utils/__init__.py", line 506, in unzip_file
          data = zip.read(name)
        File "/usr/lib/python3.6/zipfile.py", line 1338, in read
          return fp.read()
        File "/usr/lib/python3.6/zipfile.py", line 858, in read
          buf += self._read1(self.MAX_N)
        File "/usr/lib/python3.6/zipfile.py", line 948, in _read1
          data = self._decompressor.decompress(data, n)
      MemoryError
  </code></pre>
  
  
  
  <p>What should I do now to install PyTorch?</p>
  
  <p>I tried almost every method mentioned on google. I am working on Ubuntu, I tried using conda too, but I am unable to use that package outside conda.</p>