I am looking into Python and its environments. On Mac Mavericks I ran into trouble when trying to start IPython with console or notebook. The (I)Python I’m using is from Anaconda.


ipython console


ipython notebook

initially caused a lot of error spamming my terminal. After snooping around it turns out that the problem is the LANG variable being set automatically in the terminals. (Running locale reveals that the LANG is not set.) My fix was to turn this automagic setting off:

In iTerm2: Preferences > Profiles > Terminal > Set locale variables automatically

iTerm2 settings

In Terminal: Preferences > Settings > Advanced > Set locale environment variables on startup

Terminal settings