title: Why the ‘sudo nohup python a.py &’ command cannot find numpy？
body: <p>I have installed python and numpy,and can run a.py with 'python a.py' command.
  a.py is here:</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  print(np.__version__)
  </code></pre>
  
  <p>But when I run a.py with command '<strong>sudo nohup python a.py &amp;</strong>',no module named numpy.
  Detail is shown below in image.
  What's more,my linux version is ubuntu 18_04 64.
  <a href="https://i.stack.imgur.com/R5Wo2.png" rel="nofollow noreferrer">Detail img</a></p>