Reputation: 35
I've installed python 2.7 previously, but when I tried to delete it and reinstall python 3.x, I realize that my mac 10.6.8 still work on python 2.7. Can some body help me how to remove python 2.7 completely.
Moreover, after install anaconda 1.8.0 for mac 10.6 base on python 2.7, I can't open spyder with message:
File "/Users/tieume/anaconda/bin/spyder", line 2, in <module>
from spyderlib import start_app
File "/Users/tieume/anaconda/lib/python2.7/site-packages/spyderlib/start_app.py", line 12, in <module>
from spyderlib.baseconfig import get_conf_path
File "/Users/tieume/anaconda/lib/python2.7/site-packages/spyderlib/baseconfig.py", line 193, in <module>
_ = get_translation("spyderlib")
File "/Users/tieume/anaconda/lib/python2.7/site-packages/spyderlib/baseconfig.py", line 172, in get_translation
lang = locale.getdefaultlocale()[0]
File "/Users/tieume/anaconda/python.app/Contents/lib/python2.7/locale.py", line 511, in getdefaultlocale
return _parse_localename(localename)
File "/Users/tieume/anaconda/python.app/Contents/lib/python2.7/locale.py", line 443, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
and the anaconda launcher always show 'Loading app lists..'
Thanks all.
Upvotes: 0
Views: 452
Reputation: 1154
You cannot simply remove python 2.7, there is OS stuff that depends on it, however you can install python 3.x along with it.
Regarding the spyder error, to fix it you will have to set these environment variables in your ~/.profile (or ~/.bashrc) manually:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
Upvotes: 1