title: Pytorch is installed but is not working on ubuntu 18.04
body: <p>I am trying to install Pytorch via pip on ubuntu 18.04.I have python 3.6 and my laptop is HP-Pavilion notebook 15</p>
  
  <p>The installation seems to be right because i get the message:</p>
  
  <blockquote>
    <p>Installing collected packages: torch, torchvision Successfully
    installed torch-1.3.1+cpu torchvision-0.4.2+cpu</p>
  </blockquote>
  
  <p>i run the verification code and it is ok</p>
  
  <pre><code>  from __future__ import print_function
  
    import torch
  
    x = torch.rand(5, 3)
  
    print(x)
  </code></pre>
  
  <p>However, when i close the terminal or reboot and try to run he same code i get the error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "torch.py", line 2, in 
        import torch</p>
    
    <p>AttributeError: module 'torch' has no attribute 'rand'</p>
  </blockquote>