conda command will prompts error
<p>I'm using arch linux and I've installed Anaconda as per the instruction on the Anaconda site. When I'm attempting to run <code>conda info --envs
</code> I get the following error:</p>

<pre><code>bash: /home/lukasz/anaconda3/bin/conda: /opt/anaconda1anaconda2anaconda3/bin/python: bad interpreter: No such file or directory
</code></pre>

<p>I've tryed looking for the directory <code>/opt/anaconda1anaconda2anaconda3/bin/python:</code> but it simply doesn't exist. </p>

<p>Furthermore, when I run python from the terminal it runs as normal with the following displayed at the top</p>

<pre><code>Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
</code></pre>

<p>for completeness my <code>.bashrc</code> file resembles:</p>

<pre><code>#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] &amp;&amp; return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

# added by Anaconda3 4.0.0 installer
export PATH="/home/lukasz/anaconda3/bin:$PATH"

# python startup for up keys
export PYTHONSTARTUP=$HOME/.pythonstartup
</code></pre>

<p>I've tried following the <a href="http://stackoverflow.com/questions/35246386/conda-command-not-found">Conda command not found</a> and making the the appropriate changes but nothing, I've also attempted to <a href="http://stackoverflow.com/questions/33946829/conda-command-not-found-path-is-in-bashrc">Conda command not found, path is in .bashrc</a> but there really isn't a solution posted. </p>

<p>I would like to try to fix this without having to remove Anaconda and reinstalling it.</p>

<p>Something must have gone wrong during the installation, I suppose.
The bad interpreter means that a script is looking for an interpreter that doesn't exist - as you rightfully pointed out.</p>

<p>The problem is likely to be in the shebang <code>#!</code> statement of your conda script.</p>

<blockquote>
  <p><em><a href="https://en.wikipedia.org/wiki/Shebang_(Unix)" rel="nofollow">From Wikipedia</a>: Under Unix-like operating systems, when a script with a shebang is run as a program, the program loader parses the rest
  of the script's initial line as an interpreter directive; the
  specified interpreter program is run instead, passing to it as an
  argument the path that was initially used when attempting to run the
  script.</em></p>
</blockquote>

<p>If you run</p>

<pre><code>cat ~/anaconda3/bin/conda
</code></pre>

<p>You will probably get the following:</p>

<pre><code>#!/opt/anaconda1anaconda2anaconda3/bin/python
if __name__ == '__main__':
    import sys
    import conda.cli

    sys.exit(conda.cli.main())
</code></pre>

<p>Changing the first line to point a correct interpreter, i.e., changing it to:</p>

<pre><code>#!/home/lukasz/anaconda3/bin/python
</code></pre>

<p>Should make the <code>conda</code> command work.</p>

<p>If you are sure that you installed everything properly, then I'd suggest maybe reaching out for <a href="https://www.continuum.io/support" rel="nofollow">support from the anaconda community.</a></p>

python linux anaconda