I was using python with anaconda on osx 10.8 and the spyder crashed. When I tried to reboot, the launcher showed the spyder as not being installed. I figured the anaconda might have had a problem and rebooted the computer, but the problem continued.
Trying to figure out the source, I noticed that the default version of python had changed:
$ python --version
Python 3.4.1 :: Continuum Analytics, Inc.
I tried to change back using defaults write
, redoing the link with ln -sf
and creating a alias python=python2.7
, nothing worked.
So I tried using conda to remove python3, but conda remove python3
does not work. Using conda to fetch installed packages returns this:
$ conda search python
Fetching package metadata: ..
(...)
python 1.0.1 0 defaults
(...)
. 2.7.5 2 defaults
. 2.7.5 3 defaults
(...)
* 3.4.1 0 defaults
I tried to check the Continuum documentation, but they recommend leaving 2.7 as default and creating Anaconda environments to use different versions, which does not help either.
Does anyone have any idea how to change the default back to version 2.7?
(System specifications: anaconda 1.7.0, osx 10.8.5, conda 3.5.2)