I am running the latest Anaconda Python 3.6. I would like to switch to Python 2.7 system wide.
I searched around and found a way to change the python environment in MacOS by creating a new python environment and then running source activate python2
. Great, but that only works in the current terminal session.
(python2) $ ~/
I have Eclipse IDE running that needs Python 2.7 for certain things. I can just dereference Anaconda in the path by changing the ~/.bash_profile
, but that's not my question. I am looking for a way to change the default Ananconda python environment from 3.4 to 2.7 system wide and not just in one terminal session.
I found this in the comments:
conda config --set core.default_env=python2
but I am getting an error:
conda config: error: argument --set: expected 2 arguments
Surely, there must be a way to switch Anaconda based environments system wide?