title: Cannot run Python script using sudo
body: <p>I have a simple script which is using <a href="https://github.com/TargetProcess/signalr-client-py" rel="noreferrer">signalr-client-py</a> as an external module. </p>
  
  <pre><code>from requests import Session
  from signalr import Connection
  import threading
  </code></pre>
  
  <p>When I try to run my script using the <code>sudo python myScriptName.py</code> I get an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "buttonEventDetectSample.py", line 3, in &lt;module&gt;
      from signalrManager import *
    File "/home/pi/Desktop/GitRepo/DiatAssign/Main/signalrManager.py", line 2, in &lt;module&gt;
      from signalr import Connection
  ImportError: No module named signalr
  </code></pre>
  
  <p>If I run my script typing only <code>python myScriptName.py</code> it works perfectly fine but I need to have the <strong>sudo</strong> in front because later on in my other scripts (that use this one) I perform write operation on the File system.</p>
  
  <p>I am quite new to Python and that's why I need to know how I can handle this situation. If I type <code>pydoc modules</code> I get a list which contains:</p>
  
  <pre><code>signalr
  signalrManager
  </code></pre>
  
  <p>If I type <code>pip freeze</code> I can see there listed:</p>
  
  <pre><code>signalr-client==0.0.7
  </code></pre>