Mac OS X and python “ValueError: unknown locale: UTF-8”

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
    原文作者:虓垚
    原文地址: https://segmentfault.com/a/1190000008498622
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞