0

I am a beginner user of iPython with Anaconda and I have everything compatible with Python 3.5. I tried to import the matplotlib package to make a simple histogram and I got the following very weird error, an unknown locale: UTF-8 I have verified and I don't have anything in my program not in ASCII characters. Why do you think this might be happening?

Thank you!

ValueError: unknown locale: UTF-8
Catia B.
  • 11
  • 1
  • I forgot to add, I'm in Mac OS X Mavericks (still haven't updated to El Capitan, for which the problem seems to exist too). – Catia B. Jan 14 '16 at 15:34

1 Answers1

1

You need to add the following to your .bash_profile:

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

After these changes, run source .bash_profile.

deborah-digges
  • 1,165
  • 11
  • 19