Refer "sudo pip" to anaconda pip
<p>I have <a href="https://www.continuum.io/downloads" rel="nofollow">anaconda</a> installed in my ubuntu system. </p>

<p>If I use <code>sudo pip</code> in terminal, it seems that it refers to system pip, not to anaconda pip. I run <code>sudo which pip</code> to verify it.</p>

<p>The <code>sudo which pip</code> gave me output of <code>/usr/local/bin/pip</code>,
and <code>which pip</code> gave me the output of <code>/home/ubuntuUser/anaconda3/bin/pip</code></p>

<p>How to change the configuration so that when I use <code>sudo pip</code>, it refers to my anaconda pip</p>