How to isolate Anaconda from system python without set the shell path
<p>I want to install Anaconda locally on my home directory ~/.Anaconda3 (Archlinux) and without setting the path in the shell because I like to keep my system python as the default.</p>

<p>So I like to launch the Spyder (or other Anaconda's app) as isolated app from system binaries. I mean when I launch for example <code>.Anaconda3/bin/spyder</code> it launches spyder and this app uses Anaconda's binaries but when I use <code>python ThisScript.py</code> in my shell it uses system python installed from packages (e.g. /bin/python).</p>

<p>I managed to update the anaconda using <code>.Anaconda3/bin/conda update --all</code> in my shell without setting the Anaconda's binaries path (<code>.Anaconda/bin/</code>) but thsi way run some apps like spyder doesn't work obviously.</p>

<p>Currently <a href="https://gist.github.com/esc/4967965" rel="nofollow">this</a> zsh function solves the problem using temporarily change the shell path variable. I just need to:</p>

<p>1) anaconda_on</p>

<p>2) <code>which python</code> or <code>python --version</code> or <code>spyder</code> ....</p>

<p>3) anaconda_off</p>

<p>This is neat and solves my problem. But there might be more universal way for this. Any suggestion? There are many cases which is better to isolate anaconda from the system python.</p>

python linux shell anaconda spyder