title: How to run jupyterhub using sudo. Error: commad not found
body: <p>I want to run <code>Jupyterhub</code> on my server.  I installed <code>Jupyterhub</code> from <a href="http://jupyterhub.readthedocs.io/en/latest/quickstart.html" rel="nofollow noreferrer">the instruction</a>.  I try it from both my computer and the server where both running on Ubuntu 16.04.  When I start Jupyterhub without sudo, everything is Ok on my computer, and I can log in with my user and It starts the jupyter server. But when I run  jupyterhub from the server after login I get error 500: Internal server error and it seems its because of permission error</p>
  <p><code>PermissionError: [Errno 13] Permission denied </code></p>
  <p>Then I tried to run jupyterhub using sudo: <code>sudo jupyterhub -f jc.py </code> where <code>jc.py</code> is my configuration file. And I see this error:</p>
  <pre><code>sudo: jupyterhub: command not found
  </code></pre>
  <p>At first step, I don't know why sudo doesn't recognize jupyterhub command,
  As the guide says, I install jupyterhub using conda.</p>
  <p>To solve that problem I run jupyterhub from the path:</p>
  <p><code>sudo anaconda3/bin/jupyterhub -f jc.py </code>
  and this time I get this error:</p>
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'configurable-http-proxy'
  </code></pre>
  <p>And absolutely I'm sure that I installed  <code>'configurable-http-proxy'</code> when I run <code>conda install -c conda-forge jupyterhub  # installs jupyterhub and proxy</code>.</p>
  <p>Why <code>sudo</code> doesn't recognize <code>jupyterhub</code>?
  How can I solve that <code>PermissionError</code>?</p>