$ sudo ln -s /anaconda/bin/python2.7 /usr/bin/python2.7.9
$ sudo ln -s /anaconda/bin/python2.7-config /usr/bin/python2.7.9-config
But then we see this weird behaviour:
$ /usr/bin/python2.7.9
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
$ /anaconda/bin/python2.7
Python 2.7.9 |Anaconda 2.0.0 (x86_64)| (default, Dec 15 2014, 10:37:34)
So /anaconda/bin/python2.7 does what you'd expect, and using "ls -l /usr/bin/pyth*" reveals that the symlink /usr/bin/python2.7.9 points to /anaconda/bin/python2.7.
But /usr/bin/python2.7.9 does not give /anaconda/bin/python2.7 as (I think) it should.
My PATH variable looks like this:
$ echo $PATH
//anaconda/bin:/anaconda:/miniconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin:/Users/davismcc/Software/:/Users/davismcc/.emacs.d/:/Applications/IGV_2.0.14:/Users/davismcc/bin:/usr/local/ActivePerl-5.14/bin:/usr/local/ActivePerl-5.14/site/bin:/Applications/Emacs.app:/Users/davismcc/Software/plink-1.07-mac-intel:/Users/davismcc/Software/plinkseq/client:/Users/davismcc/Software/limix://anaconda/bin/scons
After trying a bunch of things (e.g hash -r), with think it's an issue with the PATH, but we're still just like ¯\_(ツ)_/¯
Any insights would be much appreciated. Otherwise, any other/better suggestions for getting rPython to work with Anaconda Python also very welcome (have tried setting RPYTHON_PYTHON_VARIABLE, but seems irrelevant if symlinks don't give us the version of Python that we want).
Thanks and best wishes
Davis