On Mac OS X, to solve the Python error 「ValueError: unknown locale: UTF-8「:bash
Add some lines to your ~/.bash_profile then re-start bash (or re-login):code
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8