On Mac OS X, to solve the Python error “ValueError: unknown locale: UTF-8“:

Add some lines to your ~/.bash_profile then re-start bash (or re-login):

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

虓垚
108 声望2 粉丝

python爱好者,曾经的java工程师,现从事技术创投工作 email: yulei@yoomai.cn