Reputation: 1369
I'm trying to install neo
into my Anaconda distribution using
conda install -c https://conda.binstar.org/neuroinf neo
(taken from here) but am getting the error:
bash: /transform/anaconda/bin/conda: /usr/local/anaconda/bin/python: bad interpreter: No such file or directory
It's not finding /usr/local/anaconda/bin/python
because it doesn't exist. I have anaconda installed in /transform/anaconda/
. I've edited my .bashrc file to reflect this but for some reason it's still looking in /usr/local/
(at least in some way, note that it is correctly looking in /transform/
for the first directory argument). What do I need to change to get it to look in /transform/anaconda/bin/python
?
echo $PATH
returns:
/transform/anaconda/bin:/usr/bin:/transform/anaconda/bin:/usr/bin:/transform/anaconda/bin:/usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/PHShome/gcw8/bin
(I realize it's messy, I'll clean it up when I get a minute)
I'm running CentOS and python 2.7.
Upvotes: 2
Views: 4946
Reputation: 91450
Did you move your Anaconda installation? This is not supported, for this exact reason.
After modifying the shebang to fix Anaconda you may need to use conda
to uninstall and reinstall any other package that has shebang lines or other hard-coded paths to fix them.
Upvotes: 3
Reputation: 798446
/transform/anaconda/bin/conda
expects the Python executable to be in /usr/local/anaconda/bin/python
since that is what is in its shebang line, but you've installed it elsewhere, specifically /transform/anaconda/bin/python
. You will need to modify the shebang line to point to the correct location.
Upvotes: 2