Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110809

Re: Errors in installation of matplotlib and pandas on Macbook

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Errors in installation of matplotlib and pandas on Macbook
Date 2016-06-30 14:49 +1000
Message-ID <mailman.121.1467262148.2358.python-list@python.org> (permalink)
References <34f6dbb3-5781-468b-9e47-006ffb36582f@googlegroups.com> <CAPTjJmqv3T9yfpDNpvF=-YX_Etg3hZcCh9N3D9jsSyO-z8HOWg@mail.gmail.com>

Show all headers | View raw


On Thu, Jun 30, 2016 at 1:51 PM, Madhavan Bomidi <blmadhavan@gmail.com> wrote:
>   File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
>     raise ValueError, 'unknown locale: %s' % localename
> ValueError: unknown locale: UTF-8

This looks like a problem in your environment. "UTF-8" is not a
locale; usually you'll want something else first. For me, it's
"en_AU.utf8" (although I believe UTF-8 works fine in place of utf8).
What language do you primarily speak, and what country are you in? Put
their two-letter codes together, and you'll get something like
"en_US.utf8" (English, USA), or "tr_TR.utf8" (Turkish, Turkey), or
"pt_BR.utf8" (Portuguese, Brazil). Once you know what locale you want
to be using, though, you'll need someone who knows Macs to help you
select that appropriately. Worst case, run this command before
starting Python:

export LC_ALL=en_AU.utf8

That may help.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Errors in installation of matplotlib and pandas on Macbook Madhavan Bomidi <blmadhavan@gmail.com> - 2016-06-29 20:51 -0700
  Re: Errors in installation of matplotlib and pandas on Macbook Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-29 21:01 -0700
    Re: Errors in installation of matplotlib and pandas on Macbook Madhavan Bomidi <blmadhavan@gmail.com> - 2016-06-29 21:27 -0700
  Re: Errors in installation of matplotlib and pandas on Macbook Chris Angelico <rosuav@gmail.com> - 2016-06-30 14:49 +1000
    Re: Errors in installation of matplotlib and pandas on Macbook Madhavan Bomidi <blmadhavan@gmail.com> - 2016-06-29 22:54 -0700
      Re: Errors in installation of matplotlib and pandas on Macbook Chris Angelico <rosuav@gmail.com> - 2016-06-30 16:02 +1000
        Re: Errors in installation of matplotlib and pandas on Macbook Madhavan Bomidi <blmadhavan@gmail.com> - 2016-06-29 23:21 -0700
          Re: Errors in installation of matplotlib and pandas on Macbook Chris Angelico <rosuav@gmail.com> - 2016-06-30 17:03 +1000
          Re: Errors in installation of matplotlib and pandas on Macbook tommy yama <bluebox03@gmail.com> - 2016-06-30 21:48 +0900

csiph-web