Matplotlib – ValueError: unknown locale: UTF-8 on EI-Capitan

If you have faced the error on MacOS X EI-Capitan for Matplotlib library, here’s the quick fix – add these lines to your ~/.zshrc

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

Leave a Reply

Your email address will not be published. Required fields are marked *